diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-12 22:56:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-12 22:56:41 +0000 |
commit | 1ccd185cb49d81465a2901622e58ceae046d1d83 (patch) | |
tree | cbf922d862143d8d1d389ee4041c409b931cb04e /lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | 48d3c108b6c78a90070d068cae02ca9d7b08485f (diff) |
stop using methods that take vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 37f4c75a09..556c054a99 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -7832,7 +7832,8 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) { } if (!Indices.empty()) - return new GetElementPtrInst(SrcGEPOperands[0], Indices, GEP.getName()); + return new GetElementPtrInst(SrcGEPOperands[0], &Indices[0], + Indices.size(), GEP.getName()); } else if (GlobalValue *GV = dyn_cast<GlobalValue>(PtrOp)) { // GEP of global variable. If all of the indices for this GEP are |