[llvm-commits] [llvm] r149179 - /llvm/trunk/lib/MC/MCParser/AsmParser.cpp

Benjamin Kramer benny.kra at googlemail.com
Sat Jan 28 07:28:42 PST 2012


Author: d0k
Date: Sat Jan 28 09:28:41 2012
New Revision: 149179

URL: http://llvm.org/viewvc/llvm-project?rev=149179&view=rev
Log:
Silence GCC's -Wreturn-type warning.

Modified:
    llvm/trunk/lib/MC/MCParser/AsmParser.cpp

Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=149179&r1=149178&r2=149179&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Sat Jan 28 09:28:41 2012
@@ -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 @@
   case MCExpr::Unary:
     return IsUsedIn(Sym, static_cast<const MCUnaryExpr*>(Value)->getSubExpr());
   }
+
+  llvm_unreachable("Unknown expr kind!");
 }
 
 bool AsmParser::ParseAssignment(StringRef Name, bool allow_redef) {





More information about the llvm-commits mailing list