Index: src/IceELFSection.h |
diff --git a/src/IceELFSection.h b/src/IceELFSection.h |
index 6d24e4af5e13ba3d060ecdb7186c2f8c3fed2499..ef1b299f68d1e8275175a9d61baa3f2d44979350 100644 |
--- a/src/IceELFSection.h |
+++ b/src/IceELFSection.h |
@@ -352,10 +352,12 @@ void ELFRelocationSection::writeData(const GlobalContext &Ctx, ELFStreamer &Str, |
const ELFSymbolTableSection *SymTab) { |
for (const AssemblerFixup &Fixup : Fixups) { |
const ELFSym *Symbol; |
- if (Fixup.isNullSymbol()) |
+ if (Fixup.isNullSymbol()) { |
Symbol = SymTab->getNullSymbol(); |
- else |
- Symbol = SymTab->findSymbol(Fixup.symbol(&Ctx)); |
+ } else { |
+ constexpr Assembler *Asm = nullptr; |
+ Symbol = SymTab->findSymbol(Fixup.symbol(&Ctx, Asm)); |
+ } |
if (!Symbol) |
llvm::report_fatal_error("Missing symbol mentioned in reloc"); |