[llvm] r241288 - [Statepoints] Make operator bool() explicit.

Sanjoy Das sanjoy at playingwithpointers.com
Thu Jul 2 11:15:19 PDT 2015


Author: sanjoy
Date: Thu Jul  2 13:15:18 2015
New Revision: 241288

URL: http://llvm.org/viewvc/llvm-project?rev=241288&view=rev
Log:
[Statepoints] Make operator bool() explicit.

(Addressing post-commit review.)

Modified:
    llvm/trunk/include/llvm/IR/Statepoint.h

Modified: llvm/trunk/include/llvm/IR/Statepoint.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Statepoint.h?rev=241288&r1=241287&r2=241288&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Statepoint.h (original)
+++ llvm/trunk/include/llvm/IR/Statepoint.h Thu Jul  2 13:15:18 2015
@@ -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;
   }





More information about the llvm-commits mailing list