aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGRecordLayoutBuilder.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-11-19 03:53:54 +0000
committerMike Stump <mrs@apple.com>2009-11-19 03:53:54 +0000
commit88bd0094d8784b0a6a785ddeca18e5061417dcce (patch)
treef78868fc496a47dfffc54dd3ed364d4dcc9522f6 /lib/CodeGen/CGRecordLayoutBuilder.cpp
parentb32aa51ce9b608002a031e8ca682f073e28024cf (diff)
This doesn't work yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89307 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGRecordLayoutBuilder.cpp')
-rw-r--r--lib/CodeGen/CGRecordLayoutBuilder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CGRecordLayoutBuilder.cpp b/lib/CodeGen/CGRecordLayoutBuilder.cpp
index 8e0864b8dd..a63c8325ff 100644
--- a/lib/CodeGen/CGRecordLayoutBuilder.cpp
+++ b/lib/CodeGen/CGRecordLayoutBuilder.cpp
@@ -345,6 +345,11 @@ static const CXXMethodDecl *GetKeyFunction(const RecordDecl *D) {
if (MD->isPure())
continue;
+ // FIXME: This doesn't work. If we have an out of line body, that body will
+ // set the MD to have a body, what we want to know is, was the body present
+ // inside the declaration of the class. For now, we just avoid the problem
+ // by pretending there is no key function.
+ return 0;
if (MD->getBody())
continue;