Skip to content

Commit 8878e7b

Browse files
authored
Disable new debug record format (#2554)
After LLVM commit 91446e2aa687 ("Repply#2 "[RemoveDIs] Load into new debug info format by default in LLVM (#89799)"", 2024-05-03), we need to disable the new debug record format explicitly until we have migrated to the new format.
1 parent 926ca2a commit 8878e7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SPIRV/SPIRVReader.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5064,6 +5064,10 @@ llvm::convertSpirvToLLVM(LLVMContext &C, SPIRVModule &BM,
50645064
const SPIRV::TranslatorOpts &Opts,
50655065
std::string &ErrMsg) {
50665066
std::unique_ptr<Module> M(new Module("", C));
5067+
// TODO: Migrate to the new debug record format. Until then, keep using the
5068+
// old format.
5069+
M->setNewDbgInfoFormatFlag(false);
5070+
50675071
SPIRVToLLVM BTL(M.get(), &BM);
50685072

50695073
if (!BTL.translate()) {

0 commit comments

Comments
 (0)