hostloc: Simplify static_assert

This commit is contained in:
Lioncash 2016-08-28 16:59:03 -04:00 committed by MerryMage
parent e1ed160768
commit 37d64f0c86

View file

@ -24,7 +24,7 @@ Xbyak::Xmm HostLocToXmm(HostLoc loc) {
Xbyak::Address SpillToOpArg(HostLoc loc) { Xbyak::Address SpillToOpArg(HostLoc loc) {
using namespace Xbyak::util; using namespace Xbyak::util;
static_assert(std::is_same<decltype(JitState{nullptr}.Spill[0]), u64&>::value, "Spill must be u64"); static_assert(std::is_same<decltype(JitState::Spill[0]), u64&>::value, "Spill must be u64");
DEBUG_ASSERT(HostLocIsSpill(loc)); DEBUG_ASSERT(HostLocIsSpill(loc));
size_t i = static_cast<size_t>(loc) - static_cast<size_t>(HostLoc::FirstSpill); size_t i = static_cast<size_t>(loc) - static_cast<size_t>(HostLoc::FirstSpill);