================
@@ -741,9 +775,8 @@ Expr *Interpreter::SynthesizeExpr(Expr *E) {
   auto *OutValue = CStyleCastPtrExpr(S, Ctx.VoidPtrTy, (uintptr_t)&LastValue);
 
   // Build `__clang_Interpreter_SetValue*` call.
-  RuntimeInterfaceBuilder Builder(*this, Ctx, S, E, {ThisInterp, OutValue});
+  ExprResult Result = Builder->getCall(E, {ThisInterp, OutValue});
----------------
weliveindetail wrote:

FindRuntimeInterface() and getCall() are virtual functions now, which 
introduces a tiny runtime overhead for each synthesized expression. It should 
be negligible compared to the effort for parsing and compilation, but if it's 
an issue, I am happy to change it to a call to function pointer.

https://github.com/llvm/llvm-project/pull/83126
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to