[llvm] [llvm][DebugInfo] Require non-null debug metadata fields when writing bitcode (PR #198441)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 4 04:59:10 PDT 2026
================
@@ -2182,7 +2182,7 @@ void ModuleBitcodeWriter::writeDICompileUnit(const DICompileUnit *N,
if (Lang.hasVersionedName())
Record.back() ^= (uint64_t(1) << 63);
- Record.push_back(VE.getMetadataOrNullID(N->getFile()));
+ Record.push_back(VE.getMetadataID(N->getFile()) + 1);
----------------
Michael137 wrote:
Yea lets only change what was relevant to https://github.com/llvm/llvm-project/pull/196299
https://github.com/llvm/llvm-project/pull/198441
More information about the llvm-commits
mailing list