Use only explicit bool conversion operators
[oota-llvm.git] / include / llvm / Analysis / InlineCost.h
index bc7924e10fdcb6a38b519a8431379d0bf48cbb0e..28baa9eb94c0d69b5f75aa6ab540237c9f8a87fb 100644 (file)
@@ -77,7 +77,7 @@ public:
   }
 
   /// \brief Test whether the inline cost is low enough for inlining.
-  operator bool() const {
+  LLVM_EXPLICIT operator bool() const {
     return Cost < Threshold;
   }