[ms-inline asm] Make sure we set a default value for AddressOf. Follow on to

r172121.

llvm-svn: 172148
This commit is contained in:
Chad Rosier 2013-01-10 23:39:07 +00:00
parent a96a9ef716
commit 8c2a9c744e
1 changed files with 2 additions and 1 deletions

View File

@ -495,7 +495,7 @@ struct X86Operand : public MCParsedAsmOperand {
/// Create an absolute memory operand.
static X86Operand *CreateMem(const MCExpr *Disp, SMLoc StartLoc, SMLoc EndLoc,
unsigned Size = 0, bool NeedSizeDir = false){
unsigned Size = 0, bool NeedSizeDir = false) {
X86Operand *Res = new X86Operand(Memory, StartLoc, EndLoc);
Res->Mem.SegReg = 0;
Res->Mem.Disp = Disp;
@ -504,6 +504,7 @@ struct X86Operand : public MCParsedAsmOperand {
Res->Mem.Scale = 1;
Res->Mem.Size = Size;
Res->Mem.NeedSizeDir = NeedSizeDir;
Res->AddressOf = false;
return Res;
}