diff options
| author | Reid Kleckner <rnk@google.com> | 2018-11-01 21:24:33 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2018-11-01 21:24:33 +0000 |
| commit | 09b6b3bd15d3530eedc84b3caf04571e5d1d849d (patch) | |
| tree | cf9baa60fc975dbdcdebd16e4b8cd051b35b9b3d /llvm/tools | |
| parent | e0a724ef9c897b29be40c8b284ad4485d84effff (diff) | |
| download | bcm5719-llvm-09b6b3bd15d3530eedc84b3caf04571e5d1d849d.tar.gz bcm5719-llvm-09b6b3bd15d3530eedc84b3caf04571e5d1d849d.zip | |
Silence -Wimplicit-fallthrough in gold plugin
Fatal errors are likely fatal, but in case they aren't, return instead
of printing a second warning.
llvm-svn: 345894
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 239460d972d..ba9d3ac9345 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -449,6 +449,7 @@ static void diagnosticHandler(const DiagnosticInfo &DI) { case DS_Error: message(LDPL_FATAL, "LLVM gold plugin has failed to create LTO module: %s", ErrStorage.c_str()); + return; case DS_Warning: Level = LDPL_WARNING; break; |

