[Orc] Add missing casserts header to JITSymbol.h.
[oota-llvm.git] / include / llvm / ExecutionEngine / Orc / JITSymbol.h
index c55e43c2a17b92481294c2ded74d4185d0d611f6..e3d91ceb93e16d52b1fedf824d672b6cf087bfba 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
 #define LLVM_EXECUTIONENGINE_ORC_JITSYMBOL_H
 
+#include "llvm/Support/Compiler.h"
+#include <cassert>
 #include <functional>
 
 namespace llvm {
@@ -32,7 +34,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.