mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-04 03:44:59 +00:00
[mlir] Fix resource printing in the presence of multiple dialects
The comma+newline could get skipped when more than one dialect has resource providers but not all may have resources to print.
This commit is contained in:
parent
e66affa17e
commit
37ce660afa
@ -3197,7 +3197,7 @@ void OperationPrinter::printResourceFileMetadata(
|
||||
ResourceBuilder entryBuilder(*this, printFn);
|
||||
provider.buildResources(op, providerArgs..., entryBuilder);
|
||||
|
||||
needEntryComma = hadEntry;
|
||||
needEntryComma |= hadEntry;
|
||||
if (hadEntry)
|
||||
os << newLine << " }";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user