From 5395ef82535c283109b1ea6b89b737c5a39bf147 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 30 Jun 2021 13:44:43 -0400 Subject: Fix uninitialized access identified by Valgrind (#1898) * #include an absolute path didn't work - because paths were taken to always be relative. * Removes read of uniitialized data identified via valgrind runs. Co-authored-by: Theresa Foley --- source/slang/slang-ir-restructure.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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. -- cgit v1.2.3