Skip to content

Commit 9fcea0b

Browse files
committed
Add unreachable in readLoc
1 parent e8db0bc commit 9fcea0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Serialization/DeserializeSIL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ std::optional<SILLocation> SILDeserializer::readLoc(unsigned kind,
430430
case SILLocation::RegularKind:
431431
return RegularLocation(FNameLoc, Implicit);
432432
}
433+
llvm_unreachable("Invalid LocationKind");
433434
}
434435

435436
llvm::Expected<const SILDebugScope *>

0 commit comments

Comments
 (0)