diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-09-04 22:27:38 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-09-04 22:36:29 +0200 |
commit | dfa0699e732619fc2e47aa8ad6990296d93e67b9 (patch) | |
tree | fad045328f8e37b65a1707ce464456610e793050 /compiler/ccgstmts.nim | |
parent | 7e86ed00ce322f7f05dbf129e56669165f6febff (diff) | |
download | Nim-dfa0699e732619fc2e47aa8ad6990296d93e67b9.tar.gz |
C++ backend: use .noInit pragma for non-public default constructors; refs #4687
Diffstat (limited to 'compiler/ccgstmts.nim')
-rw-r--r-- | compiler/ccgstmts.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ccgstmts.nim b/compiler/ccgstmts.nim index 1b21e641a..294235ae9 100644 --- a/compiler/ccgstmts.nim +++ b/compiler/ccgstmts.nim @@ -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]) |