Skip to content

Commit

Permalink
Initialize HasIntegerDot (#1404)
Browse files Browse the repository at this point in the history
Reported as `UndefinedBehaviorSanitizer: invalid-bool-load`
  • Loading branch information
vitalybuka authored Sep 30, 2024
1 parent efc9528 commit 40c590a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/SPIRVProducerPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ struct SPIRVProducerPassImpl {
outputCInitList(outputCInitList), patchBoundOffset(0), nextID(1),
OpExtInstImportID(0), HasVariablePointersStorageBuffer(false),
HasVariablePointers(false), HasNonUniformPointers(false),
HasConvertToF(false), SamplerPointerTy(nullptr), SamplerDataTy(nullptr),
WorkgroupSizeValueID(0), WorkgroupSizeVarID(0),
HasConvertToF(false), HasIntegerDot(false), SamplerPointerTy(nullptr),
SamplerDataTy(nullptr), WorkgroupSizeValueID(0), WorkgroupSizeVarID(0),
TestOutput(out == nullptr) {
addCapability(spv::CapabilityShader);
if (clspv::Option::PhysicalStorageBuffers())
Expand All @@ -328,8 +328,9 @@ struct SPIRVProducerPassImpl {
outputCInitList(false), patchBoundOffset(0), nextID(1),
OpExtInstImportID(0), HasVariablePointersStorageBuffer(false),
HasVariablePointers(false), HasNonUniformPointers(false),
HasConvertToF(false), SamplerPointerTy(nullptr), SamplerDataTy(nullptr),
WorkgroupSizeValueID(0), WorkgroupSizeVarID(0), TestOutput(true) {
HasConvertToF(false), HasIntegerDot(false), SamplerPointerTy(nullptr),
SamplerDataTy(nullptr), WorkgroupSizeValueID(0), WorkgroupSizeVarID(0),
TestOutput(true) {
if (clspv::Option::PhysicalStorageBuffers())
addCapability(spv::CapabilityPhysicalStorageBufferAddresses);
addCapability(spv::CapabilityShader);
Expand Down

0 comments on commit 40c590a

Please sign in to comment.