summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-09-10 21:52:00 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-09-10 21:52:00 +0000
commit9df56372e8eaaefc50a9ecae66a83e608d7a5eb6 (patch)
treefa4001b27f49f5c8fa09e3a0e39bf4d30753f4ad /clang/lib/CodeGen/CodeGenFunction.cpp
parente0b44040aaa48a6f0b84ea18beffc7de33078731 (diff)
downloadbcm5719-llvm-9df56372e8eaaefc50a9ecae66a83e608d7a5eb6.tar.gz
bcm5719-llvm-9df56372e8eaaefc50a9ecae66a83e608d7a5eb6.zip
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 39bd2bc28e1..c948f8fdd9f 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -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
OpenPOWER on IntegriCloud