Skip to content

Commit ddb49f9

Browse files
committed
Use convertModFlagBehaviorToLLVM
1 parent 2665e61 commit ddb49f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static void convertModuleFlagsOp(ArrayAttr flags, llvm::IRBuilderBase &builder,
275275
llvm::Module *llvmModule = moduleTranslation.getLLVMModule();
276276
for (auto flagAttr : flags.getAsRange<ModuleFlagAttr>())
277277
llvmModule->addModuleFlag(
278-
static_cast<llvm::Module::ModFlagBehavior>(flagAttr.getBehavior()),
278+
convertModFlagBehaviorToLLVM(flagAttr.getBehavior()),
279279
flagAttr.getKey().getValue(), flagAttr.getValue());
280280
}
281281

0 commit comments

Comments
 (0)