diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index 1c2f178b9f4..31344c8d4a7 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -1472,6 +1472,11 @@ public: return Insert(CallInst::Create(FTy, Callee, Args), Name); } + CallInst *CreateCall(Function *Callee, ArrayRef Args, + const Twine &Name = "") { + return CreateCall(Callee->getFunctionType(), Callee, Args, Name); + } + Value *CreateSelect(Value *C, Value *True, Value *False, const Twine &Name = "") { if (Constant *CC = dyn_cast(C))