diff options
author | Araq <rumpf_a@web.de> | 2013-07-25 23:40:15 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-07-25 23:40:15 +0200 |
commit | f3a2eec13babbb9dff7f4852303e0bd523af2df5 (patch) | |
tree | 3dc87da1d000a600f22e5320d84a647113113370 | |
parent | a59874e312cf7486a4e5fcbd572a3701e22ad451 (diff) | |
download | Nim-f3a2eec13babbb9dff7f4852303e0bd523af2df5.tar.gz |
attempt to make C codegen aware of 'gensym'
-rw-r--r-- | compiler/ccgtypes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 4d0fae451..bb9d4c3a1 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -79,7 +79,7 @@ proc mangleName(s: PSym): PRope = else: InternalError(s.info, "mangleName") when oKeepVariableNames: let keepOrigName = s.kind in skLocalVars - {skForVar} and - {sfFromGeneric, sfGlobal, sfShadowed} * s.flags == {} and + {sfFromGeneric, sfGlobal, sfShadowed, sfGenSym} * s.flags == {} and not isKeyword(s.name) # XXX: This is still very experimental # |