From: Benjamin Kramer Date: Sat, 28 Jan 2012 15:28:41 +0000 (+0000) Subject: Silence GCC's -Wreturn-type warning. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=518ff566f5d3c39fee606c34d045543cf4682a13;p=oota-llvm.git Silence GCC's -Wreturn-type warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149179 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index c5a483c1448..01f68e3dca8 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -30,6 +30,7 @@ #include "llvm/MC/MCSymbol.h" #include "llvm/MC/MCTargetAsmParser.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/SourceMgr.h" @@ -1572,6 +1573,8 @@ static bool IsUsedIn(const MCSymbol *Sym, const MCExpr *Value) { case MCExpr::Unary: return IsUsedIn(Sym, static_cast(Value)->getSubExpr()); } + + llvm_unreachable("Unknown expr kind!"); } bool AsmParser::ParseAssignment(StringRef Name, bool allow_redef) {