summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff options
context:
space:
mode:
authorChuck Rose III <cfr@adobe.com>2007-09-05 16:54:38 +0000
committerChuck Rose III <cfr@adobe.com>2007-09-05 16:54:38 +0000
commite58572233dd9d0d5ce4fac2cea5b77cb23f0b7bb (patch)
tree6dc4b1e8a52f4ae97b06f051f008628e0c725142 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp
parent2c0a0fb7259f8b497d1b29342de9803ef2b0bb16 (diff)
downloadbcm5719-llvm-e58572233dd9d0d5ce4fac2cea5b77cb23f0b7bb.tar.gz
bcm5719-llvm-e58572233dd9d0d5ce4fac2cea5b77cb23f0b7bb.zip
Added default parameters to GetElementPtrInstr constructor call. Visual Studio 2k5 was getting confused and was unable to compile it. Suspected compiler error.
llvm-svn: 41721
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 34f9806428d..4c07eb00132 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/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));
}
}
OpenPOWER on IntegriCloud