Skip to content

Commit

Permalink
[NFC] Fix ubsan failure (#5700)
Browse files Browse the repository at this point in the history
This variable was never initialized so it was always whatever garbage
bits were left there. It should be defaulted to `false`.
  • Loading branch information
llvm-beanz authored Sep 14, 2023
1 parent 3fb1a33 commit 6159d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/clang/unittests/SPIRV/FileTestFixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class FileTest : public ::testing::Test {

FileTest()
: targetEnv(SPV_ENV_VULKAN_1_0), beforeHLSLLegalization(false),
glLayout(false), dxLayout(false) {}
glLayout(false), dxLayout(false), scalarLayout(false) {}

void setBeforeHLSLLegalization() { beforeHLSLLegalization = true; }

Expand Down

0 comments on commit 6159d58

Please sign in to comment.