Skip to content

Commit 8fd5daf

Browse files
committed
Fix MSVC "not all control paths return a value" warning. NFC.
1 parent d06303f commit 8fd5daf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Object/COFFObjectFile.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,6 +2042,7 @@ uint8_t Arm64XRelocRef::getSize() const {
20422042
case COFF::IMAGE_DVRT_ARM64X_FIXUP_TYPE_DELTA:
20432043
return sizeof(uint32_t);
20442044
}
2045+
llvm_unreachable("Unknown Arm64XFixupType enum");
20452046
}
20462047

20472048
uint64_t Arm64XRelocRef::getValue() const {

0 commit comments

Comments
 (0)