Skip to content

Commit e3206ba

Browse files
committed
[Serialization] Drop any failed overriding relationship when allowing errors
1 parent 38030dd commit e3206ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Serialization/Deserialization.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3138,6 +3138,9 @@ class DeclDeserializer {
31383138
} else if (overriddenOrError.errorIsA<FatalDeserializationError>()) {
31393139
// Pass through fatal deserialization errors.
31403140
return overriddenOrError.takeError();
3141+
} else if (MF.allowCompilerErrors()) {
3142+
// Drop overriding relationship when allowing errors.
3143+
overridden = nullptr;
31413144
} else {
31423145
llvm::consumeError(overriddenOrError.takeError());
31433146
if (overriddenAffectsABI || !ctx.LangOpts.EnableDeserializationRecovery) {

0 commit comments

Comments
 (0)