summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LTO.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/LTO.cpp')
-rw-r--r--lld/ELF/LTO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp
index 6b9696b4100..6b1192022a5 100644
--- a/lld/ELF/LTO.cpp
+++ b/lld/ELF/LTO.cpp
@@ -37,7 +37,7 @@ static void diagnosticHandler(const DiagnosticInfo &DI) {
raw_svector_ostream OS(ErrStorage);
DiagnosticPrinterRawOStream DP(OS);
DI.print(DP);
- warning(ErrStorage);
+ warn(ErrStorage);
}
static std::unique_ptr<lto::LTO> createLTO() {
OpenPOWER on IntegriCloud