From 96e0f832f867e2bdcbb50f411f9a2eb9fe34c688 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Fri, 2 Jul 2004 05:30:01 +0000 Subject: [PATCH] Get rid of a dead variable, and fix a typo in a comment. llvm-svn: 14560 --- lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp b/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp index 8fe0152ab78..10482a997c8 100644 --- a/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp +++ b/lib/Transforms/Scalar/DecomposeMultiDimRefs.cpp @@ -58,7 +58,7 @@ FunctionPass *llvm::createDecomposeMultiDimRefsPass() { // // opCode CompositeType* P, [uint|ubyte] idx1, ..., [uint|ubyte] idxN // -// this function generates the foll sequence: +// this function generates the following sequence: // // ptr1 = getElementPtr P, idx1 // ptr2 = getElementPtr ptr1, 0, idx2 @@ -83,9 +83,6 @@ bool llvm::DecomposeArrayRef(GetElementPtrInst* GEP) { Value *LastPtr = GEP->getPointerOperand(); Instruction *InsertPoint = GEP->getNext(); // Insert before the next insn - // The vector of new instructions to be created - std::vector NewInsts; - // Process each index except the last one. User::const_op_iterator OI = GEP->idx_begin(), OE = GEP->idx_end(); for (; OI+1 != OE; ++OI) {