This is an archive of the discontinued LLVM Phabricator instance.

[clang] [python] [tests] Update TLSKind tests for newer MSVC versions
ClosedPublic

Authored by mgorny on Nov 8 2017, 8:12 AM.

Details

Summary

The bump of default _MSC_VER which occurred in r315107 has caused
the '__declspec(thread)' TLSKind to change from STATIC to DYNAMIC.
Update the clang python binding tests accordingly. Test both for
behavior with old and new -fms-compatibility-version.

Diff Detail

Event Timeline

mgorny created this revision.Nov 8 2017, 8:12 AM
frutiger edited edge metadata.Nov 8 2017, 8:23 AM

Thanks for posting this on Phabricator, I had sent it to the mailing list last month.

rnk accepted this revision.Nov 8 2017, 9:22 AM

lgtm

This revision is now accepted and ready to land.Nov 8 2017, 9:22 AM

@frutiger, do you maybe happen to have fixes for the two other test failures? Maybe I'm tracking them down unnecessarily ;-).

I will commit this shortly.

@mgorny I have a fix for the unique_external issue here: https://reviews.llvm.org/D39161

I see that you haven't more luck than I did finding a better solution. How about the code completion failure? I suppose I still have to figure that one out on my own ;-).

I can commit this one myself, I have it ready for commit already.

frutiger closed this revision.Nov 8 2017, 11:18 AM

Ah missed your last note. Committed as r317706.