Add an explicit keyword.
authorDan Gohman <gohman@apple.com>
Tue, 11 Aug 2009 15:57:42 +0000 (15:57 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 11 Aug 2009 15:57:42 +0000 (15:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78675 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/IRBuilder.h

index d0535c360402e62639f43056a1c948b76ffba45e..b2619a56b6e9a7413d01ef6a9b456e5e49c7abcb 100644 (file)
@@ -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) {