Skip to content

Commit 73b291b

Browse files
[IRGen] Report error in reading legacy layouts non-fatally. (#35498)
Taking down the compiler for this is wholly unnecessary. Part of rdar://71439646. Co-authored-by: Doug Gregor <[email protected]>
1 parent 505147b commit 73b291b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/IRGen/GenType.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,8 +1420,9 @@ TypeConverter::TypeConverter(IRGenModule &IGM)
14201420
}
14211421

14221422
bool error = readLegacyTypeInfo(*fs, path);
1423-
if (error)
1424-
llvm::report_fatal_error("Cannot read '" + path + "'");
1423+
if (error) {
1424+
IGM.error(SourceLoc(), "Cannot read legacy layout file at '" + path + "'");
1425+
}
14251426
}
14261427

14271428
TypeConverter::~TypeConverter() {

0 commit comments

Comments
 (0)