diff options
Diffstat (limited to 'source/slang/slang-check-shader.cpp')
| -rw-r--r-- | source/slang/slang-check-shader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()) |
