[MS ABI] Make member pointers return true for isIncompleteType
The type of a member pointer is incomplete if it has no inheritance model. This lets us reuse more general logic already embedded in clang. llvm-svn: 247346
This commit is contained in:
@@ -117,7 +117,7 @@ CharUnits CodeGenFunction::getNaturalTypeAlignment(QualType T,
|
||||
if (Source) *Source = AlignmentSource::Type;
|
||||
|
||||
CharUnits Alignment;
|
||||
if (!CGM.getCXXABI().isTypeInfoCalculable(T)) {
|
||||
if (T->isIncompleteType()) {
|
||||
Alignment = CharUnits::One(); // Shouldn't be used, but pessimistic is best.
|
||||
} else {
|
||||
// For C++ class pointees, we don't know whether we're pointing at a
|
||||
|
||||
Reference in New Issue
Block a user