From aec0b9ae1f659b0667a0a3a15a71a279249e76c0 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 1 Jul 2011 00:19:27 +0000 Subject: [PATCH] We'll return a null RC by default if we can't match. Part of rdar://9119939 llvm-svn: 134217 --- lib/Target/ARM/ARMISelLowering.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 22cd78f80bb..1141f42f14d 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(0)); + break; case 'r': return RCPair(0U, ARM::GPRRegisterClass); case 'w':