Silence compiler warnings.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 22 Oct 2010 18:57:05 +0000 (18:57 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 22 Oct 2010 18:57:05 +0000 (18:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117128 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index 322078955df2bc7b2791b5e8a0a062bff54ccb4c..85d28f9b044b55b8f554064562609fab8968276e 100644 (file)
@@ -1264,8 +1264,12 @@ CCAssignFn *ARMFastISel::CCAssignFnForCall(CallingConv::ID CC, bool Return) {
   switch (CC) {
   default:
     llvm_unreachable("Unsupported calling convention");
-  case CallingConv::C:
   case CallingConv::Fast:
+    // Ignore fastcc. Silence compiler warnings.
+    (void)RetFastCC_ARM_APCS;
+    (void)FastCC_ARM_APCS;
+    // Fallthrough
+  case CallingConv::C:
     // Use target triple & subtarget features to do actual dispatch.
     if (Subtarget->isAAPCS_ABI()) {
       if (Subtarget->hasVFP2() &&