From 388fc863f4c86155471c3d3183fbeed0e860ff51 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Sun, 26 Oct 2025 09:00:58 +0000 Subject: [PATCH] Internals: Enable VL_DBG_AS in asan builds --- src/V3Ast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Ast.h b/src/V3Ast.h index e47eba089..a64ead1a1 100644 --- a/src/V3Ast.h +++ b/src/V3Ast.h @@ -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(nodep))