Skip to content

Commit f579080

Browse files
committed
Removed IsNewDbgInfoFormat field
1 parent d9d73d6 commit f579080

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/aotcompile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,9 @@ Function *IRLinker_copyFunctionProto(Module *DstM, Function *SF) {
541541
auto *F = Function::Create(SF->getFunctionType(), SF->getLinkage(),
542542
SF->getAddressSpace(), SF->getName(), DstM);
543543
F->copyAttributesFrom(SF);
544+
#if JL_LLVM_VERSION < 210000
544545
F->IsNewDbgInfoFormat = SF->IsNewDbgInfoFormat;
546+
#endif
545547

546548
// Remove these copied constants since they point to the source module.
547549
F->setPersonalityFn(nullptr);

src/codegen.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9906,7 +9906,9 @@ void linkFunctionBody(Function &Dst, Function &Src)
99069906
Dst.setPersonalityFn(Src.getPersonalityFn());
99079907
if (Src.hasPersonalityFn())
99089908
Dst.setPersonalityFn(Src.getPersonalityFn());
9909+
#if JL_LLVM_VERSION < 210000
99099910
assert(Src.IsNewDbgInfoFormat == Dst.IsNewDbgInfoFormat);
9911+
#endif
99109912

99119913
// Copy over the metadata attachments without remapping.
99129914
Dst.copyMetadata(&Src, 0);

0 commit comments

Comments
 (0)