================
@@ -3074,6 +2723,14 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl 
&gd, unsigned builtinID,
     if (isa<cir::VoidType>(correctedReturnType))
       return RValue::get(nullptr);
 
+    // A bool-returning builtin may back an intrinsic that returns i1; CIR 
needs
+    // those as !cir.bool.
+    if (fd && fd->getReturnType()->isBooleanType() &&
----------------
steffenlarsen wrote:

Aye and it looks much better, in my opinion. Changes made, so please let me 
know if it matches your expectations as well.

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

Reply via email to