[clang] 27c5430 - [CIR][NFC] Fix build warnings after #154142 (#157724)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 9 11:22:13 PDT 2025
Author: Andy Kaylor
Date: 2025-09-09T11:22:09-07:00
New Revision: 27c543076b9810fe2003ddca20a786d57e741ea2
URL: https://github.com/llvm/llvm-project/commit/27c543076b9810fe2003ddca20a786d57e741ea2
DIFF: https://github.com/llvm/llvm-project/commit/27c543076b9810fe2003ddca20a786d57e741ea2.diff
LOG: [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.
Added:
Modified:
clang/lib/CIR/CodeGen/CIRGenFunction.cpp
Removed:
################################################################################
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
index fb782a097a2e0..ed1272ffe1a13 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:
More information about the cfe-commits
mailing list