summary refs log tree commit diff stats
path: root/compiler/cgen.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-01-22 13:32:20 +0100
committerAraq <rumpf_a@web.de>2015-01-23 00:36:58 +0100
commit60042805222d1261592db9d782df96ae190d71d5 (patch)
tree7ac4060d24ea3e799c1e6cfa0fbf0d54231f4c7a /compiler/cgen.nim
parente2147c9f0d57ad03cd2c1fbf386b90fcbc1c658f (diff)
downloadNim-60042805222d1261592db9d782df96ae190d71d5.tar.gz
preparations for C++ template support
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r--compiler/cgen.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index f3fa6a63e..480c131ae 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -53,7 +53,7 @@ proc emitLazily(s: PSym): bool {.inline.} =
 proc initLoc(result: var TLoc, k: TLocKind, typ: PType, s: TStorageLoc) = 
   result.k = k
   result.s = s
-  result.t = getUniqueType(typ)
+  result.t = typ
   result.r = nil
   result.flags = {}
 
@@ -61,7 +61,7 @@ proc fillLoc(a: var TLoc, k: TLocKind, typ: PType, r: PRope, s: TStorageLoc) =
   # fills the loc if it is not already initialized
   if a.k == locNone: 
     a.k = k
-    a.t = getUniqueType(typ)
+    a.t = typ
     a.s = s
     if a.r == nil: a.r = r