]> granicus.if.org Git - clang/commit
[MS ABI, DebugInfo] Omit the size for model-less pointers-to-members
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 26 May 2015 21:54:24 +0000 (21:54 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 26 May 2015 21:54:24 +0000 (21:54 +0000)
commit8032c0ac057fb8681c6785f2ea82478e92070bba
tree59207c714d1bedadd8dd5b85aef4883f57f975f8
parent01eee5eb74c03a9d08bddbe97d4a28aa429780d7
[MS ABI, DebugInfo] Omit the size for model-less pointers-to-members

The representation of a pointer-to-member in the MS ABI is governed by
the layout of the relevant class or if a model has been explicitly
specified.  If no model is specified, then an appropriate
"worst-case-scenario" model is implicitly chosen if, and only, if the
pointer-to-member type's representation was needed.

Debug info cannot force a pointer-to-member type to have a
representation so do not try to query the size of such a type unless we
know it is safe to do so.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@238259 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-info-ptr-to-member-function.cpp