Fix compile error when enable VL_LEAK_CHECKS (#3411).
Signed-off-by: HungMingWu <u9089000@gmail.com>
This commit is contained in:
parent
5b2755d28d
commit
9583f152ee
|
|
@ -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<AstNode*>(::operator new(size));
|
||||
AstNode* const objp = static_cast<AstNode*>(::operator new(size));
|
||||
V3Broken::addNewed(objp);
|
||||
return objp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue