diff options
author | Craig Topper <craig.topper@intel.com> | 2019-11-25 16:07:37 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-11-25 16:27:39 -0800 |
commit | 890c6ef1fb1350dd8e6b7b25da411cffbeaf6553 (patch) | |
tree | afe401e193c987a6700a7d1cecfed221ce7e79f3 | |
parent | 14a2bbb1ff9439b798f29e5ae63a6f9240a72983 (diff) | |
download | bcm5719-llvm-890c6ef1fb1350dd8e6b7b25da411cffbeaf6553.tar.gz bcm5719-llvm-890c6ef1fb1350dd8e6b7b25da411cffbeaf6553.zip |
[X86] Remove forward declaration of _invpcid from intrin.h. Rely on inline version from immintrin.h
The forward declaration had a cdecl calling convention, but the
inline version did not. This leads to a conflict if the default
calling convention is not cdecl. Fix this by just removing the
forward declaration.
Fixes PR41503
-rw-r--r-- | clang/lib/Headers/intrin.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Headers/intrin.h b/clang/lib/Headers/intrin.h index a73a576bc7a..f85f7a2beb4 100644 --- a/clang/lib/Headers/intrin.h +++ b/clang/lib/Headers/intrin.h @@ -169,7 +169,6 @@ long _InterlockedExchangeAdd_HLEAcquire(long volatile *, long); long _InterlockedExchangeAdd_HLERelease(long volatile *, long); __int64 _InterlockedExchangeAdd64_HLEAcquire(__int64 volatile *, __int64); __int64 _InterlockedExchangeAdd64_HLERelease(__int64 volatile *, __int64); -void __cdecl _invpcid(unsigned int, void *); static __inline__ void __attribute__((__deprecated__("use other intrinsics or C++11 atomics instead"))) _ReadBarrier(void); |