IC: next steps (#16705)
* code cleanups * refactorings for IC * more refactorings for IC * IC: attach the 'nil' type to its module * IC: refactorings and improvements * IC: progress * IC: more serialization fixes * IC: embarrassing omission * code cleanups
This commit is contained in:
parent
ef9027c290
commit
1fd4c666dc
14 changed files with 289 additions and 277 deletions
|
|
@ -791,7 +791,7 @@ proc transformCall(c: PTransf, n: PNode): PNode =
|
|||
while (j < n.len):
|
||||
let b = transform(c, n[j])
|
||||
if not isConstExpr(b): break
|
||||
a = evalOp(op.magic, n, a, b, nil, c.graph)
|
||||
a = evalOp(op.magic, n, a, b, nil, c.idgen, c.graph)
|
||||
inc(j)
|
||||
result.add(a)
|
||||
if result.len == 2: result = result[1]
|
||||
|
|
@ -869,7 +869,7 @@ proc commonOptimizations*(g: ModuleGraph; idgen: IdGenerator; c: PSym, n: PNode)
|
|||
while j < args.len:
|
||||
let b = args[j]
|
||||
if not isConstExpr(b): break
|
||||
a = evalOp(op.magic, result, a, b, nil, g)
|
||||
a = evalOp(op.magic, result, a, b, nil, idgen, g)
|
||||
inc(j)
|
||||
result.add(a)
|
||||
if result.len == 2: result = result[1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue