[llvm] a233e7d - [AArch64] Fix unannotated fall-through between switch labels

Jinsong Ji via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 08:19:12 PDT 2019


Author: Jinsong Ji
Date: 2019-10-28T15:18:50Z
New Revision: a233e7d7cb642ada49985426c23aa3c6a4c98690

URL: https://github.com/llvm/llvm-project/commit/a233e7d7cb642ada49985426c23aa3c6a4c98690
DIFF: https://github.com/llvm/llvm-project/commit/a233e7d7cb642ada49985426c23aa3c6a4c98690.diff

LOG: [AArch64] Fix unannotated fall-through between switch labels

This is breaking buildbot with -Werror,-Wimplicit-fallthrough on.
eg:
http://lab.llvm.org:8011/builders/ppc64le-lld-multistage-test/builds/6881

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
index 054d0f15e0d4..4d4f76e8e912 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
@@ -153,6 +153,7 @@ class AArch64DAGToDAGISel : public SelectionDAGISel {
       if (auto CN = dyn_cast<ConstantFPSDNode>(Opnd0))
         if (CN->isZero())
           return true;
+      break;
     }
     default:
       break;


        


More information about the llvm-commits mailing list