[lld] r361094 - Suppress false-positive GCC -Wreturn-type warning.

Michael Liao via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 23:35:47 PDT 2019


Author: hliao
Date: Fri May 17 23:35:47 2019
New Revision: 361094

URL: http://llvm.org/viewvc/llvm-project?rev=361094&view=rev
Log:
Suppress false-positive GCC -Wreturn-type warning.

Modified:
    lld/trunk/ELF/Symbols.h

Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=361094&r1=361093&r2=361094&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Fri May 17 23:35:47 2019
@@ -444,6 +444,7 @@ static size_t getSymbolSize(const Symbol
   case Symbol::PlaceholderKind:
     return sizeof(Symbol);
   }
+  llvm_unreachable("unknown symbol kind");
 }
 
 inline void replaceSymbol(Symbol *Sym, const Symbol &New) {




More information about the llvm-commits mailing list