Skip to content

Commit

Permalink
[Orc] Tweak some of the new RPC code to silence a warning (extraneous…
Browse files Browse the repository at this point in the history
… ';') and

MSVC errors related to constexpr.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266588 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lhames committed Apr 18, 2016
1 parent 35f771e commit 8149973
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/llvm/ExecutionEngine/Orc/RPCUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -539,7 +539,7 @@ class RPC : public RPCBase {
}

return std::error_code();
};
}

// Default handler for 'other' (non-response) functions when waiting for a
// result from the channel.
Expand Down

0 comments on commit 8149973

Please sign in to comment.