summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-ir-restructure.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-restructure.h b/source/slang/slang-ir-restructure.h
index 6ec15f6d7..b7a0569d5 100644
--- a/source/slang/slang-ir-restructure.h
+++ b/source/slang/slang-ir-restructure.h
@@ -222,7 +222,7 @@ namespace Slang
/// after the `switch`.
///
/// The default case must also be present in `cases`.
- Case* defaultCase;
+ Case* defaultCase = nullptr;
};
/// Container for all of the regions in a function.