From 9583f152eeb0f65bca673f18619bf7004ebdc943 Mon Sep 17 00:00:00 2001 From: HungMingWu Date: Mon, 9 May 2022 08:49:13 +0800 Subject: [PATCH] Fix compile error when enable VL_LEAK_CHECKS (#3411). Signed-off-by: HungMingWu --- src/V3Ast.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Ast.cpp b/src/V3Ast.cpp index 1bd2cc14e..a48f701e6 100644 --- a/src/V3Ast.cpp +++ b/src/V3Ast.cpp @@ -758,7 +758,7 @@ void AstNode::deleteTree() { #ifdef VL_LEAK_CHECKS void* AstNode::operator new(size_t size) { // Optimization note: Aligning to cache line is a loss, due to lost packing - const AstNode* const objp = static_cast(::operator new(size)); + AstNode* const objp = static_cast(::operator new(size)); V3Broken::addNewed(objp); return objp; }