[lld] r248749 - Try to fix gcc warning

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 15:12:55 PDT 2015


Author: rafael
Date: Mon Sep 28 17:12:54 2015
New Revision: 248749

URL: http://llvm.org/viewvc/llvm-project?rev=248749&view=rev
Log:
Try to fix gcc warning

Modified:
    lld/trunk/ELF/OutputSections.cpp

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=248749&r1=248748&r2=248749&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Sep 28 17:12:54 2015
@@ -310,8 +310,9 @@ lld::elf2::getSymVA(const ELFSymbolBody<
   case SymbolBody::UndefinedKind:
     return 0;
   case SymbolBody::LazyKind:
-    llvm_unreachable("Lazy symbol reached writer");
+    break;
   }
+  llvm_unreachable("Lazy symbol reached writer");
 }
 
 template <class ELFT>




More information about the llvm-commits mailing list