summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-10-22 18:57:05 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-10-22 18:57:05 +0000
commit21abfc94505063e8df54c718b526eb779fd85231 (patch)
tree8c2bcffa226724bca2afadae48332a0852fe2b3b
parent401c916c8aba7f48d8ed153be07fa9baac7b88f8 (diff)
downloadbcm5719-llvm-21abfc94505063e8df54c718b526eb779fd85231.tar.gz
bcm5719-llvm-21abfc94505063e8df54c718b526eb779fd85231.zip
Silence compiler warnings.
llvm-svn: 117128
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 322078955df..85d28f9b044 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -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() &&
OpenPOWER on IntegriCloud