C++ backend: use .noInit pragma for non-public default constructors; refs #4687
This commit is contained in:
parent
7e86ed00ce
commit
dfa0699e73
5 changed files with 45 additions and 18 deletions
|
|
@ -359,6 +359,7 @@ proc blockLeaveActions(p: BProc, howManyTrys, howManyExcepts: int) =
|
|||
linefmt(p, cpsStmts, "#popCurrentException();$n")
|
||||
|
||||
proc genReturnStmt(p: BProc, t: PNode) =
|
||||
if nfPreventCg in t.flags: return
|
||||
p.beforeRetNeeded = true
|
||||
genLineDir(p, t)
|
||||
if (t.sons[0].kind != nkEmpty): genStmts(p, t.sons[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue