This commit is contained in:
Andreas Rumpf
2020-07-23 18:21:44 +02:00
parent c90c53e8bb
commit 18a70a7563
2 changed files with 2 additions and 3 deletions

View File

@@ -230,7 +230,7 @@ type
TNodeKinds* = set[TNodeKind]
type
TSymFlag* = enum # 42 flags!
TSymFlag* = enum # 43 flags!
sfUsed, # read access of sym (for warnings) or simply used
sfExported, # symbol is exported from module
sfFromGeneric, # symbol is instantiation of a generic; this is needed
@@ -294,6 +294,7 @@ type
sfNeverRaises # proc can never raise an exception, not even OverflowDefect
# or out-of-memory
sfUsedInFinallyOrExcept # symbol is used inside an 'except' or 'finally'
sfSingleUsedTemp # For temporaries that we know will only be used once
TSymFlags* = set[TSymFlag]

View File

@@ -59,8 +59,6 @@ proc getTemp(c: var Con; s: var Scope; typ: PType; info: TLineInfo): PNode =
s.vars.add(sym)
result = newSymNode(sym)
const sfSingleUsedTemp = sfExported # For temporaries that we know will only be used once
proc nestedScope(parent: var Scope): Scope =
Scope(vars: @[], wasMoved: @[], final: @[], needsTry: false, parent: addr(parent))