Skip to content

Commit 27c5430

Browse files
authored
[CIR][NFC] Fix build warnings after #154142 (#157724)
A recent change introduced a new dtor kind, which caused a build warning in the CIR code where this dtor kind wasn't handled in a switch. This fixes the problem.
1 parent d71df82 commit 27c5430

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/CIR/CodeGen/CIRGenFunction.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,8 @@ void CIRGenFunction::emitDestructorBody(FunctionArgList &args) {
655655
// we'd introduce *two* handler blocks. In the Microsoft ABI, we
656656
// always delegate because we might not have a definition in this TU.
657657
switch (dtorType) {
658+
case Dtor_Unified:
659+
llvm_unreachable("not expecting a unified dtor");
658660
case Dtor_Comdat:
659661
llvm_unreachable("not expecting a COMDAT");
660662
case Dtor_Deleting:

0 commit comments

Comments
 (0)