[cfe-commits] r89307 - /cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
Mike Stump
mrs at apple.com
Wed Nov 18 19:53:54 PST 2009
Author: mrs
Date: Wed Nov 18 21:53:54 2009
New Revision: 89307
URL: http://llvm.org/viewvc/llvm-project?rev=89307&view=rev
Log:
This doesn't work yet.
Modified:
cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
Modified: cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp?rev=89307&r1=89306&r2=89307&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp Wed Nov 18 21:53:54 2009
@@ -345,6 +345,11 @@
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;
More information about the cfe-commits
mailing list