[llvm] c84a936 - Remove unnecessary break to fix static analysis warning.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 03:00:48 PDT 2024


Author: Simon Pilgrim
Date: 2024-08-07T11:00:23+01:00
New Revision: c84a936516228cabc08d1ae6da6b9c3830005c64

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

LOG: Remove unnecessary break to fix static analysis warning.

Added: 
    

Modified: 
    llvm/lib/Object/COFFObjectFile.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 30a36a458310b..09dd3d2cbb8d8 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -2013,7 +2013,6 @@ uint8_t Arm64XRelocRef::getEntrySize() const {
   switch (getType()) {
   case COFF::IMAGE_DVRT_ARM64X_FIXUP_TYPE_VALUE:
     return (1u << getArg()) / sizeof(uint16_t) + 1;
-    break;
   case COFF::IMAGE_DVRT_ARM64X_FIXUP_TYPE_DELTA:
     return 2;
   default:


        


More information about the llvm-commits mailing list