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 716fe1c commit a4b2975Copy full SHA for a4b2975
llvm/lib/Target/SPIRV/SPIRVLegalizePointerCast.cpp
@@ -195,9 +195,9 @@ class SPIRVLegalizePointerCast : public FunctionPass {
195
if (DstType->getElementType() != SrcType->getElementType()) {
196
// Support bitcast between vectors of different sizes only if
197
// the total bitwidth is the same.
198
- auto dstBitWidth =
+ [[maybe_unused]] auto dstBitWidth =
199
DstType->getElementType()->getScalarSizeInBits() * dstNumElements;
200
- auto srcBitWidth =
+ [[maybe_unused]] auto srcBitWidth =
201
SrcType->getElementType()->getScalarSizeInBits() * srcNumElements;
202
assert(dstBitWidth == srcBitWidth &&
203
"Unsupported bitcast between vectors of different sizes.");
0 commit comments