[lld] 799e988 - [LLD][COFF] Silence GCC warning in Arm64XDynamicRelocEntry::getSize (NFC) (#122382)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 05:38:26 PST 2025


Author: Jacek Caban
Date: 2025-01-10T14:38:22+01:00
New Revision: 799e9883eaf7c7bdebfb8ddb3366d9137527b29d

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

LOG: [LLD][COFF] Silence GCC warning in Arm64XDynamicRelocEntry::getSize (NFC) (#122382)

Fixes 71bbafba31699bdabe289654d157ae961432e52a.

Added: 
    

Modified: 
    lld/COFF/Chunks.cpp

Removed: 
    


################################################################################
diff  --git a/lld/COFF/Chunks.cpp b/lld/COFF/Chunks.cpp
index d87a4d8d1ae79b..f2d0111a19558a 100644
--- a/lld/COFF/Chunks.cpp
+++ b/lld/COFF/Chunks.cpp
@@ -1174,6 +1174,7 @@ size_t Arm64XDynamicRelocEntry::getSize() const {
   case IMAGE_DVRT_ARM64X_FIXUP_TYPE_ZEROFILL:
     llvm_unreachable("unsupported type");
   }
+  llvm_unreachable("invalid type");
 }
 
 void Arm64XDynamicRelocEntry::writeTo(uint8_t *buf) const {


        


More information about the llvm-commits mailing list