From c5a453e56985022deb820cbbb2ff5cd6a8347e34 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 1 Jun 2024 19:26:14 -0700 Subject: Support different SPIRV versions. (#4254) --- source/slang/slang-check-shader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-check-shader.cpp') diff --git a/source/slang/slang-check-shader.cpp b/source/slang/slang-check-shader.cpp index 7a6deed5c..43f8b55e8 100644 --- a/source/slang/slang-check-shader.cpp +++ b/source/slang/slang-check-shader.cpp @@ -526,8 +526,8 @@ namespace Slang // TODO: provedence should have a way to filter out for provenance that are missing X capabilitySet from their caps, else in big functions we get junk errors // This is specifically a problem for when a function is missing a target but otherwise has identical capabilities. - const auto& interredCapConjunctions = entryPointFuncDecl->inferredCapabilityRequirements.getAtomSets(); - const auto& compileCaps = targetCaps.getAtomSets(); + const auto interredCapConjunctions = entryPointFuncDecl->inferredCapabilityRequirements.getAtomSets(); + const auto compileCaps = targetCaps.getAtomSets(); if (compileCaps && interredCapConjunctions) { for (auto inferredAtom : *interredCapConjunctions.begin()) -- cgit v1.2.3