Skip to content

Commit 3c6cf85

Browse files
authored
Merge pull request swiftlang#35389 from DougGregor/irgen-non-fatal-legacy-layouts-fail
[IRGen] Report error in reading legacy layouts non-fatally.
2 parents 1119dfb + afc4fa2 commit 3c6cf85

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)