Preserve the name for this variant of IRBuilder::CreateCall
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 10 Aug 2011 01:10:08 +0000 (01:10 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 10 Aug 2011 01:10:08 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137192 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/IRBuilder.h

index 3ae81c4..133b1c3 100644 (file)
@@ -1145,7 +1145,7 @@ public:
 
   CallInst *CreateCall(Value *Callee, ArrayRef<Value *> Args,
                        const Twine &Name = "") {
-    return Insert(CallInst::Create(Callee, Args, Name));
+    return Insert(CallInst::Create(Callee, Args), Name);
   }
 
   Value *CreateSelect(Value *C, Value *True, Value *False,