summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-09-16 22:31:39 +0800
committerGitHub <noreply@github.com>2024-09-16 22:31:39 +0800
commitd0dc4ac22f9a4ec6a492c4a5030df90ca02a3d8e (patch)
treeca1075327b40b32bddb034dae88f3b175d6583f3 /compiler
parent22d2cf217597468ace8ba540d6990b1f6d8a816a (diff)
downloadNim-d0dc4ac22f9a4ec6a492c4a5030df90ca02a3d8e.tar.gz
minor improvement (#24113)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ccgtypes.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim
index 5fc4d6552..5c3e82346 100644
--- a/compiler/ccgtypes.nim
+++ b/compiler/ccgtypes.nim
@@ -932,12 +932,11 @@ proc getTypeDescAux(m: BModule; origTyp: PType, check: var IntSet; kind: TypeDes
   if t != origTyp and origTyp.sym != nil: useHeader(m, origTyp.sym)
   let sig = hashType(origTyp, m.config)
 
-  result = "" # todo move `result = getTypePre(m, t, sig)` here ?
+  result = getTypePre(m, t, sig)
   defer: # defer is the simplest in this case
     if isImportedType(t) and not m.typeABICache.containsOrIncl(sig):
       addAbiCheck(m, t, result)
 
-  result = getTypePre(m, t, sig)
   if result != "" and t.kind != tyOpenArray:
     excl(check, t.id)
     if kind == dkRefParam or kind == dkRefGenericParam and origTyp.kind == tyGenericInst: