Fix compiler warnigns.

llvm-svn: 119175
diff --git a/llvm/lib/MC/ELFObjectWriter.cpp b/llvm/lib/MC/ELFObjectWriter.cpp
index 18d8e74..b15c2d4 100644
--- a/llvm/lib/MC/ELFObjectWriter.cpp
+++ b/llvm/lib/MC/ELFObjectWriter.cpp
@@ -290,7 +290,7 @@
                           const MCFragment *Fragment, const MCFixup &Fixup,
                                   MCValue Target, uint64_t &FixedValue) {
       assert(0 && "RecordRelocation is not specific enough");
-    };
+    }
 
     virtual uint64_t getSymbolIndexInSymbolTable(const MCAssembler &Asm,
                                          const MCSymbol *S);
@@ -1335,7 +1335,7 @@
     case ELF::EM_ARM:
       return new ARMELFObjectWriter(OS, Is64Bit, IsLittleEndian, EMachine,
                                     HasRelocationAddend, OSType); break;
-    default: assert(0 && "Unsupported architecture"); break;
+    default: llvm_unreachable("Unsupported architecture"); break;
   }
 }