forked from OSchip/llvm-project
clang/test/CXX/drs/dr5xx.cpp: Fix up assumption of thiscall. It affects not x64 but x86.
Note, i686-cygwin doesn't use thiscall. llvm-svn: 217234
This commit is contained in:
parent
c879d06a85
commit
634c355e35
|
@ -518,10 +518,10 @@ namespace dr546 { // dr546: yes
|
|||
}
|
||||
|
||||
namespace dr547 { // dr547: yes
|
||||
// When targeting the MS ABI, the type of a member function includes a
|
||||
// When targeting the MS x86 ABI, the type of a member function includes a
|
||||
// __thiscall qualifier. This is non-conforming, but we still implement
|
||||
// the intent of dr547
|
||||
#if defined(_M_IX86) || defined(__MINGW32__) || defined(__MINGW64__)
|
||||
#if defined(_M_IX86) || (defined(__MINGW32__) && !defined(__MINGW64__))
|
||||
#define THISCALL __thiscall
|
||||
#else
|
||||
#define THISCALL
|
||||
|
|
Loading…
Reference in New Issue