Remove the API for creating ConstantExprs with the nsw, nuw, inbounds,
[oota-llvm.git] / lib / VMCore / ConstantFold.cpp
index 701a195f7fded11d9703b9bebf30e2d54bf42b53..a869467245688599f59585c911f46e25ac482001 100644 (file)
@@ -122,9 +122,7 @@ static Constant *FoldBitCast(LLVMContext &Context,
         }
 
         if (ElTy == DPTy->getElementType())
-          // This GEP is inbounds because all indices are zero.
-          return ConstantExpr::getInBoundsGetElementPtr(V, &IdxList[0],
-                                                        IdxList.size());
+          return ConstantExpr::getGetElementPtr(V, &IdxList[0], IdxList.size());
       }
 
   // Handle casts from one vector constant to another.  We know that the src