Skip to content

Commit 6d36496

Browse files
Small fixes
Signed-off-by: Davide Grohmann <[email protected]> Change-Id: I8df473ef101d12f2d57d1cc2f71f05268e3dc5c3
1 parent 06bc4d0 commit 6d36496

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

mlir/lib/Dialect/SPIRV/IR/SPIRVDialect.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,9 +1065,8 @@ LogicalResult SPIRVDialect::verifyRegionArgAttribute(Operation *op,
10651065
return verifyRegionAttribute(op->getLoc(), argType, attribute);
10661066
}
10671067

1068-
LogicalResult
1069-
SPIRVDialect::verifyRegionResultAttribute(Operation *op, unsigned regionIndex,
1070-
unsigned resultIndex,
1071-
NamedAttribute attribute) {
1068+
LogicalResult SPIRVDialect::verifyRegionResultAttribute(
1069+
Operation *op, unsigned /*regionIndex*/, unsigned /*resultIndex*/,
1070+
NamedAttribute attribute) {
10721071
return op->emitError("cannot attach SPIR-V attributes to region result");
10731072
}

mlir/lib/IR/AsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void OpAsmPrinter::printFunctionalType(Operation *op) {
104104
// it is a function (avoiding a grammar ambiguity).
105105
bool wrapped = op->getNumResults() != 1;
106106
if (!wrapped && op->getResult(0).getType() &&
107-
isa<GraphType>(op->getResult(0).getType()))
107+
isa<FunctionType>(op->getResult(0).getType()))
108108
wrapped = true;
109109

110110
if (wrapped)

0 commit comments

Comments
 (0)