[llvm] [LoongArch] Use fallback path when relocation `SymA == nullptr` (PR #196940)
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 12 02:21:06 PDT 2026
================
@@ -403,6 +403,9 @@ bool LoongArchAsmBackend::addReloc(const MCFragment &F, const MCFixup &Fixup,
};
uint64_t FixedValueA, FixedValueB;
if (Target.getSubSym()) {
+ if (!Target.getAddSym())
+ return Fallback();
----------------
wangleiat wrote:
A short comment would be helpful, but otherwise LGTM.
https://github.com/llvm/llvm-project/pull/196940
More information about the llvm-commits
mailing list