aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-01 00:19:27 +0000
committerEric Christopher <echristo@apple.com>2011-07-01 00:19:27 +0000
commit1070f82569be2602640e15e3a0a3eda55228b8aa (patch)
treecb07ad603b04b2b3566fff4b19ad1eeccbfc4cc5
parent0c13e9471a4aa32207923d84c0990eeb9bb898ab (diff)
We'll return a null RC by default if we can't match.
Part of rdar://9119939 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134217 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMISelLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index 22cd78f80b..1141f42f14 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/lib/Target/ARM/ARMISelLowering.cpp
@@ -7544,8 +7544,7 @@ ARMTargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint,
case 'h': // High regs or no regs.
if (Subtarget->isThumb())
return RCPair(0U, ARM::hGPRRegisterClass);
- else
- return RCPair(0U, static_cast<const TargetRegisterClass*>(0));
+ break;
case 'r':
return RCPair(0U, ARM::GPRRegisterClass);
case 'w':