[Statepoints] Make operator bool() explicit.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 2 Jul 2015 18:15:18 +0000 (18:15 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 2 Jul 2015 18:15:18 +0000 (18:15 +0000)
(Addressing post-commit review.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241288 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Statepoint.h

index aeb0ede72c2733526bed6be53326bff3edea6526..4ab1f8497adb619cc357edeaf92da423a5378f89 100644 (file)
@@ -86,7 +86,7 @@ public:
     CallArgsBeginPos = 5,
   };
 
-  operator bool() const {
+  explicit operator bool() const {
     // We do not assign non-statepoint CallSites to StatepointCS.
     return (bool)StatepointCS;
   }