[llvm-commits] [llvm] r147867 - /llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMBaseInfo.h
Richard Smith
richard-llvm at metafoo.co.uk
Tue Jan 10 11:10:23 PST 2012
Author: rsmith
Date: Tue Jan 10 13:10:22 2012
New Revision: 147867
URL: http://llvm.org/viewvc/llvm-project?rev=147867&view=rev
Log:
Fix a -Wreturn-type warning in g++.
Modified:
llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMBaseInfo.h
Modified: llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMBaseInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMBaseInfo.h?rev=147867&r1=147866&r2=147867&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMBaseInfo.h (original)
+++ llvm/trunk/lib/Target/ARM/MCTargetDesc/ARMBaseInfo.h Tue Jan 10 13:10:22 2012
@@ -67,6 +67,7 @@
inline static const char *ARMCondCodeToString(ARMCC::CondCodes CC) {
switch (CC) {
+ default: llvm_unreachable("Unknown condition code");
case ARMCC::EQ: return "eq";
case ARMCC::NE: return "ne";
case ARMCC::HS: return "hs";
More information about the llvm-commits
mailing list