Skip to content

Commit 0f2ad74

Browse files
authored
codegen: set ModFlag for Debug Info Version to Warning (#40653)
This allows linking the resulting code against another bitcode library (such as libopencilk-abi.bc) that was built with a different version of llvm debug info.
1 parent 24d9eab commit 0f2ad74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ static void jl_setup_module(Module *m, const jl_cgparams_t *params = &jl_default
16891689
m->addModuleFlag(llvm::Module::Warning, "Dwarf Version", dwarf_version);
16901690
}
16911691
if (!m->getModuleFlag("Debug Info Version"))
1692-
m->addModuleFlag(llvm::Module::Error, "Debug Info Version",
1692+
m->addModuleFlag(llvm::Module::Warning, "Debug Info Version",
16931693
llvm::DEBUG_METADATA_VERSION);
16941694
m->setDataLayout(jl_data_layout);
16951695
m->setTargetTriple(jl_TargetMachine->getTargetTriple().str());

0 commit comments

Comments
 (0)