OSDN Git Service

Fix Visual Studio compilation of types within template classes.
authorNicolas Capens <capn@google.com>
Fri, 2 Sep 2016 14:22:57 +0000 (10:22 -0400)
committerNicolas Capens <nicolascapens@google.com>
Wed, 7 Sep 2016 20:44:46 +0000 (20:44 +0000)
BUG=swiftshader:7

Change-Id: I0c51c67b6f19a061dfff83415df5e41ea0efd6de
Reviewed-on: https://chromium-review.googlesource.com/380596
Reviewed-by: Jim Stichnoth <stichnot@chromium.org>
Tested-by: Nicolas Capens <nicolascapens@google.com>
src/IceInstX86Base.h
src/IceInstX86BaseImpl.h

index 1221351..2ed35fe 100644 (file)
@@ -2632,7 +2632,7 @@ template <typename TraitsType> struct InstImpl {
     }
 
   private:
-    InstX86Nop(Cfg *Func, SizeT Length);
+    InstX86Nop(Cfg *Func, NopVariant Length);
 
     NopVariant Variant;
   };
index 4b9ea41..0187f9b 100644 (file)
@@ -107,7 +107,7 @@ InstImpl<TraitsType>::InstX86Label::InstX86Label(Cfg *Func,
 template <typename TraitsType>
 InstImpl<TraitsType>::InstX86Br::InstX86Br(
     Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse,
-    const InstImpl<TraitsType>::InstX86Label *Label, BrCond Condition,
+    const InstX86Label *Label, BrCond Condition,
     Mode Kind)
     : InstX86Base(Func, InstX86Base::Br, 0, nullptr), Condition(Condition),
       TargetTrue(TargetTrue), TargetFalse(TargetFalse), Label(Label),
@@ -306,7 +306,7 @@ InstImpl<TraitsType>::InstX86StoreQ::InstX86StoreQ(Cfg *Func, Variable *Value,
 
 template <typename TraitsType>
 InstImpl<TraitsType>::InstX86Nop::InstX86Nop(Cfg *Func,
-                                             InstX86Nop::NopVariant Variant)
+                                             NopVariant Variant)
     : InstX86Base(Func, InstX86Base::Nop, 0, nullptr), Variant(Variant) {}
 
 template <typename TraitsType>