From 6a4c68e1874735cac47af4611abce57d0626d7e1 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 26 Jun 2019 02:34:10 +0000 Subject: [PATCH] [ARM] Fix -Wimplicit-fallthrough after D60709/r364331 llvm-svn: 364376 --- llvm/lib/Target/ARM/ARMISelLowering.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 68a6365f9763..edf5090cf54c 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -14095,10 +14095,10 @@ RCPair ARMTargetLowering::getRegForInlineAsmConstraint( return RCPair(0U, &ARM::QPR_VFP2RegClass); break; } + break; case 2: - switch (Constraint[0]) { - case 'T': + if (Constraint[0] == 'T') { switch (Constraint[1]) { default: break; @@ -14107,9 +14107,8 @@ RCPair ARMTargetLowering::getRegForInlineAsmConstraint( case 'o': return RCPair(0U, &ARM::tGPROddRegClass); } - default: - break; } + break; default: break;