summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/llvm/lld/ELF/Relocations.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/llvm/lld/ELF/Relocations.cpp b/gnu/llvm/lld/ELF/Relocations.cpp
index 9bdbad2d48a..255fb28eb81 100644
--- a/gnu/llvm/lld/ELF/Relocations.cpp
+++ b/gnu/llvm/lld/ELF/Relocations.cpp
@@ -798,8 +798,8 @@ static void reportGNUWarning(Symbol &sym, InputSectionBase &sec,
// report first occurance only
sym.gwarn = false;
if (!gnuWarning.empty())
- message(sec.getSrcMsg(sym, offset) + "(" + sec.getObjMsg(offset) +
- "): warning: " + gnuWarning);
+ warn(sec.getSrcMsg(sym, offset) + "(" + sec.getObjMsg(offset) +
+ "): warning: " + gnuWarning);
}
}