diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-29 09:17:16 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-29 09:17:16 -0800 |
| commit | 21f86773771c26da8bf3c458642e51b1728d419c (patch) | |
| tree | eedd31408f5aac5795aabe94f71d935115426964 | |
| parent | c6756d76fd70424f5b3bd1d910a5afc46dc7c83e (diff) | |
Fix crash in `insertDebugValueStore`. (#3647)
| -rw-r--r-- | source/slang/slang-ir-insert-debug-value-store.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-ir-insert-debug-value-store.cpp b/source/slang/slang-ir-insert-debug-value-store.cpp index 2fec61f55..b689124a2 100644 --- a/source/slang/slang-ir-insert-debug-value-store.cpp +++ b/source/slang/slang-ir-insert-debug-value-store.cpp @@ -14,7 +14,8 @@ namespace Slang if (!firstBlock) return; auto funcDebugLoc = func->findDecoration<IRDebugLocationDecoration>(); - + if (!funcDebugLoc) + return; List<IRInst*> params; for (auto param : firstBlock->getParams()) { |
