BuiltinOperatorOverloadBuilder: Don't consider types that are unavailable on the...
authorHans Wennborg <hans@hanshq.net>
Wed, 15 Nov 2017 17:11:53 +0000 (17:11 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 15 Nov 2017 17:11:53 +0000 (17:11 +0000)
commit8237141be1d453a0cbe351d0efc6f7fb63a80975
treedeac42a2a4e2e53e769fb114e9ee5d1d964eec1c
parent56415772d681d6a0181bc583fdc6d10d7a519a57
BuiltinOperatorOverloadBuilder: Don't consider types that are unavailable on the target (PR35174)

In the PR, Clang ended up in a situation where it tried to mangle the
__float128 type, which isn't supported when targetingt MSVC, because
Clang instantiated a variable template with that type when searching for
a conversion to use in an arithmetic expression.

Differential revision: https://reviews.llvm.org/D39579

llvm-svn: 318309
clang/lib/Sema/SemaOverload.cpp
clang/test/SemaCXX/microsoft-vs-float128.cpp [new file with mode: 0644]