]> granicus.if.org Git - llvm/commitdiff
[SVE][Inline-Asm] Fix -Wimplicit-fallthrough in AArch64ISelLowering.cpp
authorKerry McLaughlin <kerry.mclaughlin@arm.com>
Tue, 3 Sep 2019 15:45:42 +0000 (15:45 +0000)
committerKerry McLaughlin <kerry.mclaughlin@arm.com>
Tue, 3 Sep 2019 15:45:42 +0000 (15:45 +0000)
Summary: Adds break to 'x' case in getRegForInlineAsmConstraint added by D66302, fixing the unintentional fallthrough.

Reviewers: sdesmalen, rovka, cameron.mcinally, greened, gribozavr, ruiu

Reviewed By: sdesmalen

Subscribers: bjope, javed.absar, tschuett, kristof.beyls, rkruppe, psnobl, llvm-commits, cfe-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D67095

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370769 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64ISelLowering.cpp

index 2757fd1662a4fc57dd939be34cca65b42cf273b0..00b86eea3cf645578d5e9a4daedd741c9a1c26de 100644 (file)
@@ -5834,6 +5834,7 @@ AArch64TargetLowering::getRegForInlineAsmConstraint(
         return std::make_pair(0U, &AArch64::ZPR_4bRegClass);
       if (VT.getSizeInBits() == 128)
         return std::make_pair(0U, &AArch64::FPR128_loRegClass);
+      break;
     case 'y':
       if (!Subtarget->hasFPARMv8())
         break;