[clang] 7b2ee46 - [CIR] Add boolean to the Complex type constraints msg (#170192)

via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 1 12:45:55 PST 2025


Author: Amr Hesham
Date: 2025-12-01T21:45:51+01:00
New Revision: 7b2ee464d278c05a0539482ecf3562649e9ea27d

URL: https://github.com/llvm/llvm-project/commit/7b2ee464d278c05a0539482ecf3562649e9ea27d
DIFF: https://github.com/llvm/llvm-project/commit/7b2ee464d278c05a0539482ecf3562649e9ea27d.diff

LOG: [CIR] Add boolean to the Complex type constraints msg (#170192)

Update the type constraints error message to also mention the boolean
type

Added: 
    

Modified: 
    clang/include/clang/CIR/Dialect/IR/CIRTypeConstraints.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/CIR/Dialect/IR/CIRTypeConstraints.td b/clang/include/clang/CIR/Dialect/IR/CIRTypeConstraints.td
index b2c146c5d2c39..ddca98eac93ab 100644
--- a/clang/include/clang/CIR/Dialect/IR/CIRTypeConstraints.td
+++ b/clang/include/clang/CIR/Dialect/IR/CIRTypeConstraints.td
@@ -173,7 +173,7 @@ def CIR_AnyComplexType : CIR_TypeBase<"::cir::ComplexType", "complex type">;
 
 def CIR_AnyComplexOrIntOrBoolOrFloatType
     : AnyTypeOf<[CIR_AnyComplexType, CIR_AnyIntOrBoolOrFloatType],
-                "complex, integer or floating point type"> {
+                "complex, integer, boolean or floating point type"> {
   let cppFunctionName = "isComplexOrIntegerOrBoolOrFloatingPointType";
 }
 


        


More information about the cfe-commits mailing list