Commit 3db8f7a2 by Nicolas Capens Committed by Nicolas Capens

Fix type alias compilation issue on Windows.

With Visual Studio 2015, the Traits type alias is not considered within scope yet for the constructor's argument list. Instead Use the template argument directly. BUG=swiftshader:7 Change-Id: I677f5bed1a4749aba921a23ed5b1466431147069 Reviewed-on: https://chromium-review.googlesource.com/379915Reviewed-by: 's avatarJim Stichnoth <stichnot@chromium.org> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent c0f1b6f3
...@@ -44,7 +44,8 @@ class AssemblerX86Base : public ::Ice::Assembler { ...@@ -44,7 +44,8 @@ class AssemblerX86Base : public ::Ice::Assembler {
AssemblerX86Base &operator=(const AssemblerX86Base &) = delete; AssemblerX86Base &operator=(const AssemblerX86Base &) = delete;
protected: protected:
explicit AssemblerX86Base(bool EmitAddrSizeOverridePrefix = Traits::Is64Bit) explicit AssemblerX86Base(
bool EmitAddrSizeOverridePrefix = TraitsType::Is64Bit)
: Assembler(Traits::AsmKind), : Assembler(Traits::AsmKind),
EmitAddrSizeOverridePrefix(EmitAddrSizeOverridePrefix) { EmitAddrSizeOverridePrefix(EmitAddrSizeOverridePrefix) {
assert(Traits::Is64Bit || !EmitAddrSizeOverridePrefix); assert(Traits::Is64Bit || !EmitAddrSizeOverridePrefix);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment