================
@@ -540,12 +540,20 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl 
&gd, unsigned builtinID,
   }
 
   // Now see if we can emit a target-specific builtin.
-  if (mlir::Value v = emitTargetBuiltinExpr(builtinID, e, returnValue)) {
+  std::optional<mlir::Value> valueOpt =
----------------
HendrikHuebner wrote:

I updated the code. I would still like to return the optional for 
`emitX86BuiltinExpr`, because this keeps the code a little cleaner since we 
don't have to call `RValue::get` for each of the cases in the big switch 
statement.

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

Reply via email to