From d2466a602774fcaec063e2f8cdbf86fd5e160a21 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 13 Sep 2023 09:48:32 -0700 Subject: Add all RayQuery SPIRV Intrinsics. (#3204) * Add all RayQuery SPIRV Intrinsics. * Fix * Fix. * fix. * Fix. * Fix. * Fix. --------- Co-authored-by: Yong He --- source/slang/slang-lookup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-lookup.cpp') diff --git a/source/slang/slang-lookup.cpp b/source/slang/slang-lookup.cpp index 89d3380e4..b32236019 100644 --- a/source/slang/slang-lookup.cpp +++ b/source/slang/slang-lookup.cpp @@ -372,7 +372,7 @@ static void _lookUpMembersInSuperTypeDeclImpl( BreadcrumbInfo* inBreadcrumbs) { auto semantics = request.semantics; - if (!as(declRef.getDecl()) && name->text == "This") + if (!as(declRef.getDecl()) && getText(name) == "This") { // If we are looking for `This` in anything other than an InterfaceDecl, // we just need to return the declRef itself. @@ -471,7 +471,7 @@ static void _lookUpMembersInSuperTypeDeclImpl( parentDeclRef = _maybeSpecializeSuperTypeDeclRef( astBuilder, containerDeclRef, facet->getType(), facet->subtypeWitness) .as(); - if (as(parentDeclRef.getDecl()) && name->text == "This") + if (as(parentDeclRef.getDecl()) && getText(name) == "This") { // If we are going looking for `This` in a `ThisType`, we just need to return the declRef itself. AddToLookupResult(ioResult, CreateLookupResultItem(parentDeclRef, inBreadcrumbs)); -- cgit v1.2.3