summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcheneym2 <acheney@nvidia.com>2025-02-14 13:05:01 -0500
committerGitHub <noreply@github.com>2025-02-14 10:05:01 -0800
commit7435d5d1c339ae8ba531d5a11d3ddcc1b5cc353c (patch)
treec8c0d3cfa32681571da18bb4cc4118c0dd11b19b
parent944c19b408f20e6c5495678028f62e4e7040aa3b (diff)
Don't remove in-use globals (#6359)
The GLSL interface block implementation accidentally removed global variables which are still in use.
-rw-r--r--source/slang/slang-ir-glsl-legalize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-glsl-legalize.cpp b/source/slang/slang-ir-glsl-legalize.cpp
index 67300dbe6..c11ccc66d 100644
--- a/source/slang/slang-ir-glsl-legalize.cpp
+++ b/source/slang/slang-ir-glsl-legalize.cpp
@@ -3353,8 +3353,8 @@ void legalizeEntryPointParameterForGLSL(
// globalVarToReplaceNextUse to catch the next use before it is removed from the
// list of uses.
globalVar->replaceUsesWith(realGlobalVar);
+ globalVar->removeAndDeallocate();
}
- globalVar->removeAndDeallocate();
}
}
else