[zeek/spicy] c58feb: Emit `TypeInfo` constants as `inline const`

0 views
Skip to first unread message

Benjamin Bannier

unread,
Jun 3, 2026, 6:55:15 AM (3 days ago) Jun 3
to spicy-...@zeek.org
Branch: refs/heads/topic/bbannier/issue-2375
Home: https://github.com/zeek/spicy
Commit: c58febf9fa3580d215591ee888d062b75df2116f
https://github.com/zeek/spicy/commit/c58febf9fa3580d215591ee888d062b75df2116f
Author: Benjamin Bannier <benjamin...@corelight.com>
Date: 2026-06-03 (Wed, 03 Jun 2026)

Changed paths:
M hilti/toolchain/src/compiler/codegen/types.cc
M tests/Baseline/hilti.optimization.no-emit/output.c++
M tests/Baseline/hilti.types.tuple.coercion/output

Log Message:
-----------
Emit `TypeInfo` constants as `inline const`

We previously emitted type information as static constants which under
certain circumstances could have caused double frees on teardown. This
patch instead emits them as `inline const` whos setup and teardown
behavior is better defined.

Closes #2375.



To unsubscribe from these emails, change your notification settings at https://github.com/zeek/spicy/settings/notifications
Reply all
Reply to author
Forward
0 new messages