* fixes https://github.com/status-im/nimbus-eth2/issues/1549 [backport:1.4] * test fixup
This commit is contained in:
parent
2f1a9eadd7
commit
cf516713d0
3 changed files with 17 additions and 6 deletions
|
|
@ -471,6 +471,14 @@ proc getTemp(p: BProc, t: PType, result: var TLoc; needsInit=false) =
|
|||
result.storage = OnStack
|
||||
result.flags = {}
|
||||
constructLoc(p, result, not needsInit)
|
||||
when false:
|
||||
# XXX Introduce a compiler switch in order to detect these easily.
|
||||
if getSize(p.config, t) > 1024 * 1024:
|
||||
if p.prc != nil:
|
||||
echo "ENORMOUS TEMPORARY! ", p.config $ p.prc.info
|
||||
else:
|
||||
echo "ENORMOUS TEMPORARY! ", p.config $ p.lastLineInfo
|
||||
writeStackTrace()
|
||||
|
||||
proc getTempCpp(p: BProc, t: PType, result: var TLoc; value: Rope) =
|
||||
inc(p.labels)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue