Skip to content

Commit f318cf3

Browse files
committed
[Serialization] Don't fatalError earlier than we have to
Noticed as part of rdar://160278232.
1 parent 66a730b commit f318cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Serialization/Deserialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ ModuleFile::getGenericSignatureChecked(serialization::GenericSignatureID ID) {
17241724
}
17251725
default:
17261726
// Not a generic signature; no way to recover.
1727-
fatal(llvm::make_error<InvalidRecordKindError>(recordID));
1727+
return diagnoseFatal(llvm::make_error<InvalidRecordKindError>(recordID));
17281728
}
17291729

17301730
// If we've already deserialized this generic signature, start over to return

0 commit comments

Comments
 (0)