Skip to content

Commit 0a791e7

Browse files
bcardosolopesxlauko
andcommitted
Update mlir/lib/Target/LLVMIR/ModuleImport.cpp
Co-authored-by: Henrich Lauko <[email protected]>
1 parent bef17f7 commit 0a791e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Target/LLVMIR/ModuleImport.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ LogicalResult ModuleImport::convertModuleFlagsMetadata() {
544544
builder.getContext(), (ModFlagBehavior)behavior);
545545

546546
moduleFlags.push_back(
547-
ModuleFlagAttr::get(builder.getContext(), behaviorAttr,
548-
builder.getStringAttr(key->getString()), valAttr));
547+
builder.getAttr<ModuleFlagAttr>(behaviorAttr, builder.getStringAttr(key->getString()),
548+
valAttr));
549549
}
550550

551551
if (!moduleFlags.empty()) {

0 commit comments

Comments
 (0)