diff --git a/include/llvm/Support/IRBuilder.h b/include/llvm/Support/IRBuilder.h index d0535c36040..b2619a56b6e 100644 --- a/include/llvm/Support/IRBuilder.h +++ b/include/llvm/Support/IRBuilder.h @@ -48,7 +48,9 @@ public: IRBuilder(LLVMContext &C, const T& F) : Context(C), Folder(F) { ClearInsertionPoint(); } - IRBuilder(LLVMContext &C) : Context(C), Folder(C) { ClearInsertionPoint(); } + explicit IRBuilder(LLVMContext &C) : Context(C), Folder(C) { + ClearInsertionPoint(); + } explicit IRBuilder(BasicBlock *TheBB, const T& F) : Context(TheBB->getContext()), Folder(F) {