Internals: Enable VL_DBG_AS in asan builds

This commit is contained in:
Geza Lore 2025-10-26 09:00:58 +00:00
parent bfb20397d9
commit 388fc863f4
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class ExecMTask;
// child getters (the strongly-typed functions that wrap op*p pointers). This is because the op*p
// pointers are usually populated by code that already asserts the correct type. Having fewer type
// assertions yields better performance in release builds.
#ifdef VL_DEBUG
#if defined(VL_DEBUG) || defined(VL_ASAN)
#define VN_DBG_AS(nodep, nodetypename) VN_AS(nodep, nodetypename)
#else
#define VN_DBG_AS(nodep, nodetypename) (AstNode::unsafePrivateAs<Ast##nodetypename>(nodep))