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.
2 parents 0eb995d + d070960 commit 1fb3db2Copy full SHA for 1fb3db2
mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
@@ -723,7 +723,9 @@ void mlir::spirv::ConstantOp::getAsmResultNames(
723
IntegerType intTy = llvm::dyn_cast<IntegerType>(type);
724
725
if (IntegerAttr intCst = llvm::dyn_cast<IntegerAttr>(getValue())) {
726
- if (intTy && intTy.getWidth() == 1) {
+ assert(intTy);
727
+
728
+ if (intTy.getWidth() == 1) {
729
return setNameFn(getResult(), (intCst.getInt() ? "true" : "false"));
730
}
731
0 commit comments