diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 09c870562744..dcf6ca958501 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -5127,7 +5127,6 @@ class WindowsARMTargetInfo : public WindowsTargetInfo { public: WindowsARMTargetInfo(const llvm::Triple &Triple) : WindowsTargetInfo(Triple), Triple(Triple) { - TLSSupported = false; WCharType = UnsignedShort; SizeType = UnsignedInt; UserLabelPrefix = ""; diff --git a/clang/test/CodeGen/windows-on-arm-tls-support.c b/clang/test/CodeGen/windows-on-arm-tls-support.c new file mode 100644 index 000000000000..dfb8b27fd7f1 --- /dev/null +++ b/clang/test/CodeGen/windows-on-arm-tls-support.c @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -triple thumbv7--windows -fms-extensions -fsyntax-only -verify %s +// expected-no-diagnostics + +__declspec(thread) int i; +