Fix breakage from r211244 by using LLVM_EXPLICIT to avoid using explicit operators...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 19 Jun 2014 01:09:49 +0000 (01:09 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 19 Jun 2014 01:09:49 +0000 (01:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211246 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/StringPool.h

index 7306ce2240b2329d0fa8e16c7a8eb76254555373..3e0465340c3b472a32cf38124ea695d1681f6ba5 100644 (file)
@@ -29,6 +29,7 @@
 #ifndef LLVM_SUPPORT_STRINGPOOL_H
 #define LLVM_SUPPORT_STRINGPOOL_H
 
+#include "llvm/Support/Compiler.h"
 #include "llvm/ADT/StringMap.h"
 #include <cassert>
 #include <new>
@@ -128,7 +129,7 @@ namespace llvm {
     }
 
     inline const char *operator*() const { return begin(); }
-    inline explicit operator bool() const { return S != nullptr; }
+    inline LLVM_EXPLICIT operator bool() const { return S != nullptr; }
 
     inline bool operator==(const PooledStringPtr &That) const { return S == That.S; }
     inline bool operator!=(const PooledStringPtr &That) const { return S != That.S; }