Skip to content

Commit 2414e5c

Browse files
[Serialization] Fix warnings
This patch fixes: clang/lib/Serialization/ASTWriterStmt.cpp:576:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default] clang/lib/Serialization/ASTReaderStmt.cpp:561:3: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
1 parent 16ddd25 commit 2414e5c

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

clang/lib/Serialization/ASTReaderStmt.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,6 @@ void ASTStmtReader::VisitConstantExpr(ConstantExpr *E) {
558558
Record.getContext().addDestruction(&E->APValueResult());
559559
}
560560
break;
561-
default:
562-
llvm_unreachable("unexpected ResultKind!");
563561
}
564562

565563
E->setSubExpr(Record.readSubExpr());

clang/lib/Serialization/ASTWriterStmt.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,6 @@ void ASTStmtWriter::VisitConstantExpr(ConstantExpr *E) {
573573
case ConstantResultStorageKind::APValue:
574574
Record.AddAPValue(E->APValueResult());
575575
break;
576-
default:
577-
llvm_unreachable("unexpected ResultKind!");
578576
}
579577

580578
Record.AddStmt(E->getSubExpr());

0 commit comments

Comments
 (0)