Skip to content

Commit 6892827

Browse files
MaxEW707tru
authored andcommitted
[Headers] [ARM64EC] Fix extra tokens inside intrin0.h preprocessor directive (llvm#112066)
Fixes llvm#87717. (cherry picked from commit 9bf68c2)
1 parent f8cf339 commit 6892827

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

clang/lib/Headers/intrin0.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ unsigned char _InterlockedCompareExchange128_rel(__int64 volatile *_Destination,
4444
__int64 *_ComparandResult);
4545
#endif
4646

47-
#ifdef __x86_64__ && !defined(__arm64ec__)
47+
#if defined(__x86_64__) && !defined(__arm64ec__)
4848
unsigned __int64 _umul128(unsigned __int64, unsigned __int64,
4949
unsigned __int64 *);
5050
unsigned __int64 __shiftleft128(unsigned __int64 _LowPart,

clang/test/Headers/ms-intrin.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
// RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu pentium4 \
22
// RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
3-
// RUN: -ffreestanding -fsyntax-only -Werror \
3+
// RUN: -ffreestanding -fsyntax-only -Werror -Wsystem-headers \
44
// RUN: -isystem %S/Inputs/include %s
55

66
// RUN: %clang_cc1 -triple i386-pc-win32 -target-cpu broadwell \
77
// RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
8-
// RUN: -ffreestanding -emit-obj -o /dev/null -Werror \
8+
// RUN: -ffreestanding -emit-obj -o /dev/null -Werror -Wsystem-headers \
99
// RUN: -isystem %S/Inputs/include %s
1010

1111
// RUN: %clang_cc1 -triple x86_64-pc-win32 \
1212
// RUN: -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 \
13-
// RUN: -ffreestanding -emit-obj -o /dev/null -Werror \
13+
// RUN: -ffreestanding -emit-obj -o /dev/null -Werror -Wsystem-headers \
1414
// RUN: -isystem %S/Inputs/include %s
1515

1616
// RUN: %clang_cc1 -triple thumbv7--windows \
1717
// RUN: -fms-compatibility -fms-compatibility-version=17.00 \
18-
// RUN: -ffreestanding -fsyntax-only -Werror \
18+
// RUN: -ffreestanding -fsyntax-only -Werror -Wsystem-headers \
1919
// RUN: -isystem %S/Inputs/include %s
2020

2121
// RUN: %clang_cc1 -triple aarch64--windows \
2222
// RUN: -fms-compatibility -fms-compatibility-version=17.00 \
23-
// RUN: -ffreestanding -fsyntax-only -Werror \
23+
// RUN: -ffreestanding -fsyntax-only -Werror -Wsystem-headers \
2424
// RUN: -isystem %S/Inputs/include %s
2525

2626
// RUN: %clang_cc1 -triple arm64ec--windows \
2727
// RUN: -fms-compatibility -fms-compatibility-version=17.00 \
28-
// RUN: -ffreestanding -fsyntax-only -Werror \
28+
// RUN: -ffreestanding -fsyntax-only -Werror -Wsystem-headers \
2929
// RUN: -isystem %S/Inputs/include %s
3030

3131
// REQUIRES: x86-registered-target

0 commit comments

Comments
 (0)