[MSVC Compatibility] Don't diagnose c-style cast from void-ptr to fn-ptr
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 9 Jun 2015 02:41:08 +0000 (02:41 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 9 Jun 2015 02:41:08 +0000 (02:41 +0000)
commit78324f2bce787e176004906734f3a126a5461bd9
tree9c46d980f4ec407ec1e14ef20306ba6642d8cdc6
parent14facf307c417e5fbde827a25b74fc80e9932ca6
[MSVC Compatibility] Don't diagnose c-style cast from void-ptr to fn-ptr

The machinery added to permit a static_cast from void-ptr to fn-ptr
unintentionally gets triggered for c-style casts and function-style
casts.  The observable effect was a diagnostic issued inappropriately.

llvm-svn: 239382
clang/lib/Sema/SemaCast.cpp
clang/test/SemaCXX/MicrosoftCompatibility-cxx98.cpp