[flang][mlir] Fix FIR after D108899

After 41d4aa7de6, some builder.getStringAttr
calls in FIR were wrong.
This commit is contained in:
Jean Perier 2021-08-30 04:46:04 -07:00
parent a5791badde
commit 58e1a5e4c2
2 changed files with 2 additions and 2 deletions

View File

@ -3281,7 +3281,7 @@ def fir_DispatchTableOp : fir_Op<"dispatch_table",
// Convert the parsed name attr into a string attr.
result.attributes.set(mlir::SymbolTable::getSymbolAttrName(),
parser.getBuilder().getStringAttr(nameAttr.getRootReference()));
nameAttr.getRootReference());
// Parse the optional table body.
mlir::Region *body = result.addRegion();

View File

@ -581,7 +581,7 @@ static ParseResult parseGlobalOp(OpAsmParser &parser, OperationState &result) {
result.attributes))
return mlir::failure();
result.addAttribute(mlir::SymbolTable::getSymbolAttrName(),
builder.getStringAttr(nameAttr.getRootReference()));
nameAttr.getRootReference());
bool simpleInitializer = false;
if (mlir::succeeded(parser.parseOptionalLParen())) {