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
+++ /dev/null
-// 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
-}
-