diff --git a/lld/COFF/Chunks.cpp b/lld/COFF/Chunks.cpp index d87a4d8d1ae79..f2d0111a19558 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 {