================
@@ -386,14 +386,15 @@ class CIRAttrToValue {
 
   mlir::Value visit(mlir::Attribute attr) {
     return llvm::TypeSwitch<mlir::Attribute, mlir::Value>(attr)
-        .Case<cir::IntAttr, cir::FPAttr, cir::ConstComplexAttr,
+        .Case<cir::BoolAttr, cir::IntAttr, cir::FPAttr, cir::ConstComplexAttr,
----------------
andykaylor wrote:

It's only values that can be converted to an LLVM constant value, which is only 
about half of our attributes. As you've probably seen by now, I posted 
https://github.com/llvm/llvm-project/pull/187607 to implement this using a 
flag, but I may be able to rework that to use `TypeAttrInterface` or otherwise 
make that connection more explicit.

https://github.com/llvm/llvm-project/pull/187590
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to