From f44d35061472ae7c7648dc9a3107ef137574d22a Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Thu, 30 Sep 2010 10:59:51 +0000 Subject: [PATCH] Silence a GCC warning about not handling all flags in this switch, we specifically assert on unexpected flags. llvm-svn: 115143 --- llvm/lib/MC/MCMachOStreamer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp index a5f9c2dee508..a0695058e228 100644 --- a/llvm/lib/MC/MCMachOStreamer.cpp +++ b/llvm/lib/MC/MCMachOStreamer.cpp @@ -158,9 +158,9 @@ void MCMachOStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) { case MCAF_SubsectionsViaSymbols: getAssembler().setSubsectionsViaSymbols(true); return; + default: + llvm_unreachable("invalid assembler flag!"); } - - assert(0 && "invalid assembler flag!"); } void MCMachOStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {