Commit Graph

5 Commits

Author SHA1 Message Date
NAKAMURA Takumi 86fda4a2ff clang/test/CodeGen/ms_this.cpp: Fix for -Asserts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255690 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-15 22:42:28 +00:00
NAKAMURA Takumi ddce9a420b Fix clang/test/CodeGen/ms_this.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255685 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-15 22:19:00 +00:00
Krzysztof Parzyszek 60d593800a Unsupport test that should not be run on Hexagon
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255667 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-15 19:14:24 +00:00
Michael Zuckerman 803b013e4a [Microsoft][C++] Clang doesn't support a use of "this" pointer inside inline asm
add triple to test

Differential Revision: http://reviews.llvm.org/D15115



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255647 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-15 14:35:51 +00:00
Michael Zuckerman 980893d537 [Microsoft][C++] Clang doesn't support a use of "this" pointer inside inline asm
Clang doesn’t support a use of “this” pointer inside inline asm.
When I tried to compile a class or a struct (see example) with an inline asm that contains "this" pointer.
Clang returns with an error.
This patch fixes that.

error: expected unqualified-id
For example:
'''
struct A {
    void f() {
          __asm mov eax, this
              // error: expected unqualified-id
                  }
};
'''
Differential Revision: http://reviews.llvm.org/D15115



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255645 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-15 14:04:18 +00:00