generate default destructors
This commit is contained in:
parent
41a9a941ab
commit
d10b524c9a
4 changed files with 107 additions and 16 deletions
|
|
@ -1062,10 +1062,3 @@ proc getSize(typ: PType): biggestInt =
|
|||
result = computeSize(typ)
|
||||
if result < 0: InternalError("getSize(" & $typ.kind & ')')
|
||||
|
||||
proc instantiateDestructor*(typ: PType): bool =
|
||||
# return true if the type already had a user-defined
|
||||
# destructor or if the compiler generated a default
|
||||
# member-wise one
|
||||
if typ.destructor != nil: return true
|
||||
return false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue