[flang][mlir] Fix FIR after D108899
After 41d4aa7de6, some builder.getStringAttr
calls in FIR were wrong.
This commit is contained in:
parent
a5791badde
commit
58e1a5e4c2
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue