diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-01-31 20:08:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-01-31 20:08:52 +0000 |
| commit | 416a8939c331aa4415d879e2e741fdc9d23e2155 (patch) | |
| tree | 08d99c399ecf410b375075e188088081d0ac6919 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp | |
| parent | 245ed94b76a548163eac245cff11b96c87c49f37 (diff) | |
| download | bcm5719-llvm-416a8939c331aa4415d879e2e741fdc9d23e2155.tar.gz bcm5719-llvm-416a8939c331aa4415d879e2e741fdc9d23e2155.zip | |
remove temporary vectors.
llvm-svn: 33715
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index a47ecd00231..aec61ab0767 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -6418,8 +6418,8 @@ Instruction *InstCombiner::visitBitCast(CastInst &CI) { // If we found a path from the src to dest, create the getelementptr now. if (SrcElTy == DstElTy) { - std::vector<Value*> Idxs(NumZeros+1, ZeroUInt); - return new GetElementPtrInst(Src, Idxs); + SmallVector<Value*, 8> Idxs(NumZeros+1, ZeroUInt); + return new GetElementPtrInst(Src, &Idxs[0], Idxs.size()); } } } |

