Added default parameters to GetElementPtrInstr constructor call. Visual Studio 2k5...
authorChuck Rose III <cfr@adobe.com>
Wed, 5 Sep 2007 16:54:38 +0000 (16:54 +0000)
committerChuck Rose III <cfr@adobe.com>
Wed, 5 Sep 2007 16:54:38 +0000 (16:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41721 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 34f9806428dbc5f084bdaa909f33d15bc8c6d614..4c07eb00132bac95eeeb25473f49d45f897a7cf8 100644 (file)
@@ -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));
     }
   }