diff options
| author | Yong He <yonghe@outlook.com> | 2023-09-27 22:39:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-27 22:39:22 -0700 |
| commit | e710fac2fcc2228d08ba867df13a9dcd9322894a (patch) | |
| tree | 28097336e6ecbc2e0d5aaa750a997f323e203827 /source/slang | |
| parent | 12e8ce5c548f4658ef2989f368ec9d93e50d9b08 (diff) | |
Fix a bug in `canInstHaveSideEffectAtAddress`. (#3246)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang')
| -rw-r--r-- | source/slang/slang-ir-util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-util.cpp b/source/slang/slang-ir-util.cpp index dd6cd8892..62da8cffd 100644 --- a/source/slang/slang-ir-util.cpp +++ b/source/slang/slang-ir-util.cpp @@ -447,7 +447,7 @@ bool canInstHaveSideEffectAtAddress(IRGlobalValueWithCode* func, IRInst* inst, I { auto callee = call->getCallee(); if (callee && - doesCalleeHaveSideEffect(callee)) + !doesCalleeHaveSideEffect(callee)) { // An exception is if the callee is side-effect free and is not reading from // memory. |
