[ms-inline asm] Remove the brackets from X86Operand in the IR. These will be
authorChad Rosier <mcrosier@apple.com>
Tue, 19 Mar 2013 21:12:14 +0000 (21:12 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 19 Mar 2013 21:12:14 +0000 (21:12 +0000)
commit0f7ccd279dc65682899a6cdb112068f512bc0246
treece7659be58529d9877fef9ddfaf07973617902d6
parentd3e7416de7f4aae708a5cc57a9fcc75ad43e1e96
[ms-inline asm] Remove the brackets from X86Operand in the IR. These will be
added back in by X86AsmPrinter::printIntelMemReference() during codegen.
Previously, this following example

  void t() {
    int i;
    __asm mov eax, [i]
  }

would generate the below assembly

  mov eax, dword ptr [[eax]]

which resulted in a fatal error when compiling.  Test case coming on the
clang side.
rdar://13444264

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177440 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp