r252727 - Silencing a -Wreturn-type warning for control reaching the end of a non-void function.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 11 05:42:03 PST 2015


Author: aaronballman
Date: Wed Nov 11 07:42:02 2015
New Revision: 252727

URL: http://llvm.org/viewvc/llvm-project?rev=252727&view=rev
Log:
Silencing a -Wreturn-type warning for control reaching the end of a non-void function.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=252727&r1=252726&r2=252727&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Nov 11 07:42:02 2015
@@ -5839,6 +5839,7 @@ public:
     case CK_NIAGARA4:
       return CG_V9;
     }
+    llvm_unreachable("Unexpected CPU kind");
   }
 
   CPUKind getCPUKind(StringRef Name) const {




More information about the cfe-commits mailing list