Elminate an unused variable
authorChris Lattner <sabre@nondot.org>
Mon, 21 Jan 2002 23:16:30 +0000 (23:16 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Jan 2002 23:16:30 +0000 (23:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1518 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/TransformInternals.cpp

index 6c7f85661976d98ceb22a33b7f2a012e45457f27..6b42d0c76676a701669cca1a63464b2858443e23 100644 (file)
@@ -167,7 +167,6 @@ const Type *ConvertableToGEP(const Type *Ty, Value *OffsetVal,
     CompTy = cast<CompositeType>(NextTy);
 
     if (const StructType *StructTy = dyn_cast<StructType>(CompTy)) {
-      const StructLayout *SL = TD.getStructLayout(StructTy);
       unsigned ActualOffset = Offset;
       NextTy = getStructOffsetType(StructTy, ActualOffset, Indices);
       if (StructTy == NextTy && ActualOffset == 0) return 0; // No progress.  :(