diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-24 20:32:41 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-24 20:32:41 +0000 |
commit | 64259f5143b64db9f182a042a5bb7886a3a92ab9 (patch) | |
tree | ce2264ce08852b4372460138ca3477ea89a051e1 /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
parent | 24e02b104395d82707adb252d4a1a94bf5d04963 (diff) | |
download | bcm5719-llvm-64259f5143b64db9f182a042a5bb7886a3a92ab9.tar.gz bcm5719-llvm-64259f5143b64db9f182a042a5bb7886a3a92ab9.zip |
Type::isObjectType now implements the (more sensible) C++ definition
of "object type" rather than the C definition of "object type". The
difference is that C's "object type" excludes incomplete types such as
struct X;
However, C's definition also makes it far too easy to use isObjectType
as a means to detect incomplete types when in fact we should use other
means (e.g., Sema::RequireCompleteType) that cope with C++ semantics,
including template instantiation.
I've already audited every use of isObjectType and isIncompleteType to
ensure that they are doing the right thing for both C and C++, so this
is patch does not change any functionality.
llvm-svn: 67648
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
0 files changed, 0 insertions, 0 deletions