asm stmt: don't quote what is already quoted

This commit is contained in:
Araq 2015-01-29 10:18:52 +01:00
commit d4786976dd

View file

@ -931,7 +931,7 @@ proc genAsmOrEmitStmt(p: BProc, t: PNode, isAsmStmt=false): PRope =
for x in splitLines(res): for x in splitLines(res):
var j = 0 var j = 0
while x[j] in {' ', '\t'}: inc(j) while x[j] in {' ', '\t'}: inc(j)
if x[j] == ':': if x[j] in {'"', ':'}:
# some clobber register list: # some clobber register list:
app(result, x); app(result, tnl) app(result, x); app(result, tnl)
elif x[j] != '\0': elif x[j] != '\0':