[llvm] r266588 - [Orc] Tweak some of the new RPC code to silence a warning (extraneous '; ') and
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 17 22:22:35 PDT 2016
Author: lhames
Date: Mon Apr 18 00:22:32 2016
New Revision: 266588
URL: http://llvm.org/viewvc/llvm-project?rev=266588&view=rev
Log:
[Orc] Tweak some of the new RPC code to silence a warning (extraneous ';') and
MSVC errors related to constexpr.
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h?rev=266588&r1=266587&r2=266588&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCUtils.h Mon Apr 18 00:22:32 2016
@@ -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.
More information about the llvm-commits
mailing list