projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a96a9ef
)
[ms-inline asm] Make sure we set a default value for AddressOf. Follow on to
author
Chad Rosier
<mcrosier@apple.com>
Thu, 10 Jan 2013 23:39:07 +0000
(23:39 +0000)
committer
Chad Rosier
<mcrosier@apple.com>
Thu, 10 Jan 2013 23:39:07 +0000
(23:39 +0000)
r172121.
llvm-svn: 172148
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index
d26254b
..
8545a56
100644
(file)
--- a/
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@
-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;
}