[llvm] a7b6583 - Fix MSVC "not all control paths return a value" warning. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 03:28:12 PDT 2024


Author: Simon Pilgrim
Date: 2024-07-10T11:27:23+01:00
New Revision: a7b65836c423c56f56e0c240afd33dabd2aaeaf1

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

LOG: Fix MSVC "not all control paths return a value" warning. NFC.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64SLSHardening.cpp b/llvm/lib/Target/AArch64/AArch64SLSHardening.cpp
index e648b7fbab566..a8bd899a09b85 100644
--- a/llvm/lib/Target/AArch64/AArch64SLSHardening.cpp
+++ b/llvm/lib/Target/AArch64/AArch64SLSHardening.cpp
@@ -131,6 +131,7 @@ class ThunksSet {
     case ThunkKind::ThunkBRAB:
       return BLRABThunks[indexOfXReg(Xm)];
     }
+    llvm_unreachable("Unknown ThunkKindId enum");
   }
 };
 


        


More information about the llvm-commits mailing list