From 8c0a429c292ea6735ce1ac14c22125266e8fb6c5 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 4 Nov 2017 18:45:42 -0400 Subject: fix warnings --- source/slang/check.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/check.cpp') diff --git a/source/slang/check.cpp b/source/slang/check.cpp index d01c913b1..58c1762bb 100644 --- a/source/slang/check.cpp +++ b/source/slang/check.cpp @@ -1661,7 +1661,7 @@ namespace Slang if (!declRefType) return false; - auto subStructTypeDecl = declRefType->declRef.getDecl()->As(); + auto structTypeDecl = declRefType->declRef.getDecl()->As(); //TODO: What do we do if type is a generic specialization? // i.e. if the struct defines typedef Generic T; // how to check if T satisfies the associatedtype constraints? @@ -1669,7 +1669,7 @@ namespace Slang bool conformance = true; for (auto & inheritanceDecl : constraintList) { - conformance = conformance && checkConformance(subStructTypeDecl, inheritanceDecl.Ptr()); + conformance = conformance && checkConformance(structTypeDecl, inheritanceDecl.Ptr()); } return conformance; } -- cgit v1.2.3