mirror of
https://github.com/Z3Prover/z3
synced 2025-05-04 22:35:45 +00:00
fix build issue for debug mode
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1827f98851
commit
b1893f2a58
6 changed files with 40 additions and 8 deletions
|
@ -482,6 +482,7 @@ protected:
|
|||
void * m_mark2_owner;
|
||||
#endif
|
||||
|
||||
#if 1
|
||||
void inc_ref() {
|
||||
SASSERT(m_ref_count < UINT_MAX);
|
||||
m_ref_count ++;
|
||||
|
@ -491,6 +492,12 @@ protected:
|
|||
SASSERT(m_ref_count > 0);
|
||||
m_ref_count --;
|
||||
}
|
||||
#else
|
||||
void inc_ref();
|
||||
|
||||
void dec_ref();
|
||||
|
||||
#endif
|
||||
|
||||
ast(ast_kind k):m_id(UINT_MAX), m_kind(k), m_mark1(false), m_mark2(false), m_mark_shared_occs(false), m_ref_count(0) {
|
||||
DEBUG_CODE({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue