summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-04-18 05:22:32 +0000
committerLang Hames <lhames@gmail.com>2016-04-18 05:22:32 +0000
commit28bba2aa318890bd15879d6c482251be49422cb2 (patch)
tree14a3f1e29b030024ae70c1c8a51546cee900e7dc
parentdf691e18f3bb1f18be8be93cea29fe3791c0f907 (diff)
downloadbcm5719-llvm-28bba2aa318890bd15879d6c482251be49422cb2.tar.gz
bcm5719-llvm-28bba2aa318890bd15879d6c482251be49422cb2.zip
[Orc] Tweak some of the new RPC code to silence a warning (extraneous ';') and
MSVC errors related to constexpr. llvm-svn: 266588
-rw-r--r--llvm/include/llvm/ExecutionEngine/Orc/RPCUtils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/RPCUtils.h b/llvm/include/llvm/ExecutionEngine/Orc/RPCUtils.h
index 3556e6b1eef..33ac997c09e 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/RPCUtils.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/RPCUtils.h
@@ -35,9 +35,9 @@ namespace remote {
template <typename T>
class RPCFunctionIdTraits {
public:
- constexpr static const T InvalidId = static_cast<T>(0);
- constexpr static const T ResponseId = static_cast<T>(1);
- constexpr static const T FirstValidId = static_cast<T>(2);
+ static constexpr T InvalidId = static_cast<T>(0);
+ static constexpr T ResponseId = static_cast<T>(1);
+ static constexpr T FirstValidId = static_cast<T>(2);
};
// Base class containing utilities that require partial specialization.
@@ -539,7 +539,7 @@ public:
}
return std::error_code();
- };
+ }
// Default handler for 'other' (non-response) functions when waiting for a
// result from the channel.
OpenPOWER on IntegriCloud