Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mlir/lib/Dialect/SPIRV/IR/SPIRVOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,9 @@ void mlir::spirv::ConstantOp::getAsmResultNames(
return setNameFn(getResult(), (intCst.getInt() ? "true" : "false"));
}

if (intTy.isSignless()) {
if (intTy && intTy.isSignless()) {
specialName << intCst.getInt();
} else if (intTy.isUnsigned()) {
} else if (intTy && intTy.isUnsigned()) {
specialName << intCst.getUInt();
} else {
specialName << intCst.getSInt();
Expand Down
Loading