From: Reid Kleckner Date: Mon, 24 Jul 2017 20:48:15 +0000 (+0000) Subject: Revert "[X86][InlineAsm][Ms Compatibility]Prefer variable name over a register when... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ea90f4421eaefb84b520b768386b41250b6e4a3;p=clang Revert "[X86][InlineAsm][Ms Compatibility]Prefer variable name over a register when the two collides" This reverts r308867 and r308866. It broke the sanitizer-windows buildbot on C++ code similar to the following: namespace cl { } void f() { __asm { mov al, cl } } t.cpp(4,13): error: unexpected namespace name 'cl': expected expression mov al, cl ^ In this case, MSVC parses 'cl' as a register, not a namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308926 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/ms-inline-asm-var-name.c b/test/CodeGen/ms-inline-asm-var-name.c deleted file mode 100644 index 084e90500a..0000000000 --- a/test/CodeGen/ms-inline-asm-var-name.c +++ /dev/null @@ -1,12 +0,0 @@ -// REQUIRES: x86-registered-target -// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s - -void t() { - int eax; - int Ecx; - __asm mov eax, ebx - // CHECK: mov $0, ebx - __asm add ecx, Ecx - // CHECK: add ecx, $1 -} -