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 1f67070 commit 289b176Copy full SHA for 289b176
llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
@@ -748,6 +748,7 @@ Type *SPIRVEmitIntrinsics::deduceElementTypeHelper(
748
if (II && II->getIntrinsicID() == Intrinsic::spv_resource_getpointer) {
749
auto *ImageType = cast<TargetExtType>(II->getOperand(0)->getType());
750
assert(ImageType->getTargetExtName() == "spirv.Image");
751
+ (void)ImageType;
752
if (II->hasOneUse()) {
753
auto *U = *II->users().begin();
754
Ty = cast<Instruction>(U)->getAccessType();
0 commit comments