From 62d995124c0cc2eaeec79e18edc3e044f3e524c9 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 23 Mar 2026 23:38:53 +0100 Subject: IR: emit inline function standalone bodies lazily If a function is stashed for inlining and inlined in all of its callsites or unused, it never ends up in the object file. If any symbol reference to it is emitted, then it must be de-inlined (rematerialized), and this is done near the end before emitting the actual object file. --- src/antcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/antcc.h') diff --git a/src/antcc.h b/src/antcc.h index fcaf02a..b467156 100644 --- a/src/antcc.h +++ b/src/antcc.h @@ -291,7 +291,7 @@ extern char pmap_tombstone_[]; #define pmap_del(m, k) pmap_del_(&(m)->mb, k) #define pmap_each(m,kx,pvx) \ for (size_t _i = 0; _i < (m)->mb.N && ((kx) = (m)->mb.k[_i], (pvx) = &(m)->v[_i], 1); ++_i) \ - if (kx && kx != pmap_tombstone_) + if (kx && kx != (void*)pmap_tombstone_) /********/ /** IO **/ -- cgit v1.2.3