From 31e7f84484d227206f3bbb33a8b9be8a9acecfe5 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 4 Nov 2017 15:20:21 -0400 Subject: Passing both assoctype-simple and assoctype-complex test cases. --- source/slang/lower-to-ir.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/slang/lower-to-ir.cpp') diff --git a/source/slang/lower-to-ir.cpp b/source/slang/lower-to-ir.cpp index 7a3e9356a..81fab7108 100644 --- a/source/slang/lower-to-ir.cpp +++ b/source/slang/lower-to-ir.cpp @@ -2652,8 +2652,6 @@ struct DeclLoweringVisitor : DeclVisitor LoweredValInfo lowerFuncDecl(FunctionDeclBase* decl) { - if (decl->getName()->text == "test") - printf("break"); // Collect the parameter lists we will use for our new function. ParameterLists parameterLists; collectParameterLists(decl, ¶meterLists, kParameterListCollectMode_Default); @@ -3086,7 +3084,7 @@ LoweredValInfo emitDeclRef( // If this declaration reference doesn't involve any specializations, // then we are done at this point. - if(!declRef.substitutions) + if(!hasGenericSubstitutions(declRef.substitutions)) return loweredDecl; auto val = getSimpleVal(context, loweredDecl); -- cgit v1.2.3