Make sure that if anyone passes a name by accident for the isSigned
[oota-llvm.git] / include / llvm / Support / IRBuilder.h
index 05c3c569aa1a7a4fbde2da64d343c4fe313ec819..1d3c08c63754fe55e0b5ad2d6affb258389f29f7 100644 (file)
@@ -709,6 +709,9 @@ public:
       return Folder.CreateIntCast(VC, DestTy, isSigned);
     return Insert(CastInst::CreateIntegerCast(V, DestTy, isSigned), Name);
   }
+  // Provided to resolve 'CreateIntCast(Ptr, Ptr, "...")', instead of converting
+  // the string to 'bool' for the isSigned parameter.
+  ERROR_IF_USED Value *CreateIntCast(Value *, const Type *, const char *);
   Value *CreateFPCast(Value *V, const Type *DestTy, const Twine &Name = "") {
     if (V->getType() == DestTy)
       return V;