Remove dead variable
authorChris Lattner <sabre@nondot.org>
Mon, 21 Jan 2002 22:50:38 +0000 (22:50 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Jan 2002 22:50:38 +0000 (22:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1515 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetData.cpp

index 0df60fde6798e85ab349809d87cb648cdf97ac6e..d347730ee0b89062a7c063819821ed6246c67f56 100644 (file)
@@ -168,7 +168,7 @@ unsigned TargetData::getIndexedOffset(const Type *ptrTy,
       // Update Ty to refer to current element
       Ty = STy->getElementTypes()[FieldNo];
 
-    } else if (const ArrayType *ATy = dyn_cast<const ArrayType>(Ty)) {
+    } else if (isa<const ArrayType>(Ty)) {
       assert(0 && "Loading from arrays not implemented yet!");
     } else {
       assert(0 && "Indexing type that is not struct or array?");