Author: Chaitanya Date: 2026-02-20T21:22:10+05:30 New Revision: cb82236896f070bb8482b9423274b66d19a38017
URL: https://github.com/llvm/llvm-project/commit/cb82236896f070bb8482b9423274b66d19a38017 DIFF: https://github.com/llvm/llvm-project/commit/cb82236896f070bb8482b9423274b66d19a38017.diff LOG: [CIR] Handle Type::OverflowBehavior in CIR CodeGen (#182469) This PR adds OverflowBehavior case to CIR CodeGen. Fixes CI failures in clangIR introduced by https://github.com/llvm/llvm-project/pull/148914 Added: Modified: clang/lib/CIR/CodeGen/CIRGenFunction.cpp clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp Removed: ################################################################################ diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp index f8f674c4d2c21..71f3368cca3bb 100644 --- a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp @@ -67,6 +67,7 @@ cir::TypeEvaluationKind CIRGenFunction::getEvaluationKind(QualType type) { case Type::ObjCObjectPointer: case Type::Pipe: case Type::BitInt: + case Type::OverflowBehavior: case Type::HLSLAttributedResource: case Type::HLSLInlineSpirv: return cir::TEK_Scalar; @@ -1372,6 +1373,7 @@ void CIRGenFunction::emitVariablyModifiedType(QualType type) { case Type::ObjCInterface: case Type::ObjCObjectPointer: case Type::BitInt: + case Type::OverflowBehavior: llvm_unreachable("type class is never variably-modified!"); case Type::Adjusted: diff --git a/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp b/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp index aca2278c3876c..a4fdf8b33216b 100644 --- a/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp @@ -960,6 +960,7 @@ const char *vTableClassNameForType(const CIRGenModule &cgm, const Type *ty) { case Type::Builtin: case Type::BitInt: + case Type::OverflowBehavior: // GCC treats vector and complex types as fundamental types. case Type::Vector: case Type::ExtVector: @@ -1388,6 +1389,9 @@ mlir::Attribute CIRGenItaniumRTTIBuilder::buildTypeInfo( case Type::BitInt: break; + case Type::OverflowBehavior: + break; + case Type::ConstantArray: case Type::IncompleteArray: case Type::VariableArray: _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
