We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d7a3a1 commit 022039eCopy full SHA for 022039e
llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
@@ -641,6 +641,7 @@ bool SPIRVEmitIntrinsics::walkLogicalAccessChain(
641
} else if (StructType *ST = dyn_cast<StructType>(CurType)) {
642
uint32_t StructSize = DL.getTypeSizeInBits(ST) / 8;
643
assert(Offset < StructSize);
644
+ (void)StructSize;
645
const auto &STL = DL.getStructLayout(ST);
646
unsigned Element = STL->getElementContainingOffset(Offset);
647
Offset -= STL->getElementOffset(Element);
0 commit comments