aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
diff options
context:
space:
mode:
authorAndy Kaylor <akaylor@nvidia.com>2025-09-09 11:22:09 -0700
committerGitHub <noreply@github.com>2025-09-09 11:22:09 -0700
commit27c543076b9810fe2003ddca20a786d57e741ea2 (patch)
treecac8dc7ef5dd40e896b9505c3163e87847bf8dbb /clang/lib/CIR/CodeGen/CIRGenFunction.cpp
parentd71df8283b0b1bc20565c1b35656c75e180eef61 (diff)
downloadllvm-27c543076b9810fe2003ddca20a786d57e741ea2.zip
llvm-27c543076b9810fe2003ddca20a786d57e741ea2.tar.gz
llvm-27c543076b9810fe2003ddca20a786d57e741ea2.tar.bz2
[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.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenFunction.cpp')
-rw-r--r--clang/lib/CIR/CodeGen/CIRGenFunction.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
index fb782a09..ed1272f 100644
--- a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
@@ -655,6 +655,8 @@ void CIRGenFunction::emitDestructorBody(FunctionArgList &args) {
// we'd introduce *two* handler blocks. In the Microsoft ABI, we
// always delegate because we might not have a definition in this TU.
switch (dtorType) {
+ case Dtor_Unified:
+ llvm_unreachable("not expecting a unified dtor");
case Dtor_Comdat:
llvm_unreachable("not expecting a COMDAT");
case Dtor_Deleting: