Merge pull request #3870 from yglukhov/no-warn-emit
Dont warn about unused symbol if its used in emit
This commit is contained in:
commit
7770a8be78
1 changed files with 1 additions and 0 deletions
|
|
@ -443,6 +443,7 @@ proc semAsmOrEmit*(con: PContext, n: PNode, marker: char): PNode =
|
||||||
var e = searchInScopes(con, getIdent(sub))
|
var e = searchInScopes(con, getIdent(sub))
|
||||||
if e != nil:
|
if e != nil:
|
||||||
if e.kind == skStub: loadStub(e)
|
if e.kind == skStub: loadStub(e)
|
||||||
|
incl(e.flags, sfUsed)
|
||||||
addSon(result, newSymNode(e))
|
addSon(result, newSymNode(e))
|
||||||
else:
|
else:
|
||||||
addSon(result, newStrNode(nkStrLit, sub))
|
addSon(result, newStrNode(nkStrLit, sub))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue