[llvm] r228564 - [Orc] Fix the MSVC bots by using LLVM_EXPLICIT rather than explicit.

Lang Hames lhames at gmail.com
Sun Feb 8 20:46:41 PST 2015


Author: lhames
Date: Sun Feb  8 22:46:41 2015
New Revision: 228564

URL: http://llvm.org/viewvc/llvm-project?rev=228564&view=rev
Log:
[Orc] Fix the MSVC bots by using LLVM_EXPLICIT rather than explicit.

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/Orc/JITSymbol.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/JITSymbol.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/JITSymbol.h?rev=228564&r1=228563&r2=228564&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/JITSymbol.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/JITSymbol.h Sun Feb  8 22:46:41 2015
@@ -14,6 +14,7 @@
 #ifndef LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
 #define LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
 
+#include "llvm/Support/Compiler.h"
 #include <functional>
 
 namespace llvm {
@@ -32,7 +33,7 @@ public:
       : CachedAddr(0), GetAddress(std::move(GetAddress)) {}
 
   /// @brief Returns true if the symbol exists, false otherwise.
-  explicit operator bool() const { return CachedAddr || GetAddress; }
+  LLVM_EXPLICIT operator bool() const { return CachedAddr || GetAddress; }
 
   /// @brief Get the address of the symbol in the target address space. Returns
   ///        '0' if the symbol does not exist.





More information about the llvm-commits mailing list