OSDN Git Service

Fix type alias compilation issue on Windows.
authorNicolas Capens <capn@google.com>
Thu, 1 Sep 2016 15:04:46 +0000 (11:04 -0400)
committerNicolas Capens <nicolascapens@google.com>
Wed, 7 Sep 2016 17:36:09 +0000 (17:36 +0000)
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/379915
Reviewed-by: Jim Stichnoth <stichnot@chromium.org>
Tested-by: Nicolas Capens <nicolascapens@google.com>
src/IceAssemblerX86Base.h

index e9bc6bc..f0e87df 100644 (file)
@@ -44,7 +44,8 @@ class AssemblerX86Base : public ::Ice::Assembler {
   AssemblerX86Base &operator=(const AssemblerX86Base &) = delete;
 
 protected:
-  explicit AssemblerX86Base(bool EmitAddrSizeOverridePrefix = Traits::Is64Bit)
+  explicit AssemblerX86Base(
+      bool EmitAddrSizeOverridePrefix = TraitsType::Is64Bit)
       : Assembler(Traits::AsmKind),
         EmitAddrSizeOverridePrefix(EmitAddrSizeOverridePrefix) {
     assert(Traits::Is64Bit || !EmitAddrSizeOverridePrefix);