We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bef17f7 commit 0a791e7Copy full SHA for 0a791e7
mlir/lib/Target/LLVMIR/ModuleImport.cpp
@@ -544,8 +544,8 @@ LogicalResult ModuleImport::convertModuleFlagsMetadata() {
544
builder.getContext(), (ModFlagBehavior)behavior);
545
546
moduleFlags.push_back(
547
- ModuleFlagAttr::get(builder.getContext(), behaviorAttr,
548
- builder.getStringAttr(key->getString()), valAttr));
+ builder.getAttr<ModuleFlagAttr>(behaviorAttr, builder.getStringAttr(key->getString()),
+ valAttr));
549
}
550
551
if (!moduleFlags.empty()) {
0 commit comments