diff options
author | Clyybber <darkmine956@gmail.com> | 2019-11-28 17:13:04 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-11-28 17:13:04 +0100 |
commit | 7e747d11c66405f08cc7c69e5afc18348663275e (patch) | |
tree | d6277a88b503ddd503d8b769bdae6c72fcf3d27b /compiler/plugins/locals.nim | |
parent | b662842bd04852a751993ed506f9e38155a4e4aa (diff) | |
download | Nim-7e747d11c66405f08cc7c69e5afc18348663275e.tar.gz |
Cosmetic compiler cleanup (#12718)
* Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
Diffstat (limited to 'compiler/plugins/locals.nim')
-rw-r--r-- | compiler/plugins/locals.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/plugins/locals.nim b/compiler/plugins/locals.nim index 73f6eaa19..f3ee94547 100644 --- a/compiler/plugins/locals.nim +++ b/compiler/plugins/locals.nim @@ -32,7 +32,7 @@ proc semLocals*(c: PContext, n: PNode): PNode = field.position = counter inc(counter) - addSon(tupleType.n, newSymNode(field)) + tupleType.n.add newSymNode(field) addSonSkipIntLit(tupleType, field.typ) var a = newSymNode(it, result.info) |