]> granicus.if.org Git - clang/commitdiff
This doesn't work yet.
authorMike Stump <mrs@apple.com>
Thu, 19 Nov 2009 03:53:54 +0000 (03:53 +0000)
committerMike Stump <mrs@apple.com>
Thu, 19 Nov 2009 03:53:54 +0000 (03:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89307 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGRecordLayoutBuilder.cpp

index 8e0864b8dd83d44172fd2eb2b7fdd09ee6865a88..a63c8325ffa722b6f9501aa6919c3e4552fd87f6 100644 (file)
@@ -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;