Skip to content

Commit 6ac777f

Browse files
Fix the code
1 parent 85789d9 commit 6ac777f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flang/lib/Optimizer/Dialect/FIROps.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4271,7 +4271,6 @@ void fir::StoreOp::getEffects(
42714271
mlir::ParseResult fir::PrefetchOp::parse(mlir::OpAsmParser &parser,
42724272
mlir::OperationState &result) {
42734273
mlir::OpAsmParser::UnresolvedOperand memref;
4274-
// mlir::Type type = parser.getBuilder().getIntegerType(64);
42754274
if (parser.parseOperand(memref))
42764275
return mlir::failure();
42774276

@@ -4301,7 +4300,7 @@ mlir::ParseResult fir::PrefetchOp::parse(mlir::OpAsmParser &parser,
43014300
result.addAttribute("cacheType", parser.getBuilder().getUnitAttr());
43024301
} else
43034302
return parser.emitError(parser.getCurrentLocation(),
4304-
"Expected either read or write keyword");
4303+
"Expected either intruction or data keyword");
43054304

43064305
if (parser.parseComma())
43074306
return mlir::failure();

0 commit comments

Comments
 (0)