Handle explicit AddrExp for naked asm memory references.

This commit is contained in:
David Nadlinger
2013-06-11 21:54:19 +02:00
parent a9e620d428
commit 2ebf677661

View File

@@ -1827,6 +1827,12 @@ namespace AsmParserx8664
break;
case Arg_Memory:
// Peel off one layer of explicitly taking the address, if present.
if ( e->op == TOKaddress )
{
e = static_cast<AddrExp*>(e)->e1;
}
if ( e->op == TOKvar )
{
VarExp* v = ( VarExp* ) e;