diff options
author | Chuck Rose III <cfr@adobe.com> | 2007-09-05 16:54:38 +0000 |
---|---|---|
committer | Chuck Rose III <cfr@adobe.com> | 2007-09-05 16:54:38 +0000 |
commit | d4af306aec6b37abf6d5509e107f277b681ec83d (patch) | |
tree | eda810333b3a3b85f2c29d4a72d74d5a8d816342 /lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | 988650438440e5aedbcf13adf8bc2ae4fda3bd4f (diff) |
Added default parameters to GetElementPtrInstr constructor call. Visual Studio 2k5 was getting confused and was unable to compile it. Suspected compiler error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41721 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 34f9806428..4c07eb0013 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -7058,7 +7058,7 @@ Instruction *InstCombiner::visitBitCast(BitCastInst &CI) { // If we found a path from the src to dest, create the getelementptr now. if (SrcElTy == DstElTy) { SmallVector<Value*, 8> Idxs(NumZeros+1, ZeroUInt); - return new GetElementPtrInst(Src, Idxs.begin(), Idxs.end()); + return new GetElementPtrInst(Src, Idxs.begin(), Idxs.end(), "", ((Instruction*) NULL)); } } |