-internal-rvo

This commit is contained in:
gingerBill
2026-03-15 22:10:03 +00:00
parent b3b31cdba7
commit 5fa274cb6a
3 changed files with 9 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
#define LB_ENABLE_RVO true
#define LB_ENABLE_RVO build_context.enable_rvo
// NOTE(bill): @RVO Check if a call expression returns by sret with a return type matching dst_type.
// Returns the callee's function type if eligible for copy elision, nullptr otherwise.