summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGRTTI.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-10-07 06:10:15 +0000
committerJohn McCall <rjmccall@apple.com>2011-10-07 06:10:15 +0000
commit5e1cdac63c3d9c9b32fa41fa0b2d242a58a20d49 (patch)
tree4315635ba5c4741bce2150f06e162dd4ca99b98a /lib/CodeGen/CGRTTI.cpp
parent856ebfb6357042d46052ccb39c1fbb490718320e (diff)
downloadclang-5e1cdac63c3d9c9b32fa41fa0b2d242a58a20d49.tar.gz
clang-5e1cdac63c3d9c9b32fa41fa0b2d242a58a20d49.tar.bz2
clang-5e1cdac63c3d9c9b32fa41fa0b2d242a58a20d49.tar.xz
Rename TagDecl::isDefinition -> isCompleteDefinition
for better self-documenting code, since the semantics are subtly different from getDefinition(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGRTTI.cpp')
-rw-r--r--lib/CodeGen/CGRTTI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGRTTI.cpp b/lib/CodeGen/CGRTTI.cpp
index 2ad1ed3930..dbf99fa5d7 100644
--- a/lib/CodeGen/CGRTTI.cpp
+++ b/lib/CodeGen/CGRTTI.cpp
@@ -267,7 +267,7 @@ static bool ShouldUseExternalRTTIDescriptor(CodeGenModule &CGM, QualType Ty) {
/// IsIncompleteClassType - Returns whether the given record type is incomplete.
static bool IsIncompleteClassType(const RecordType *RecordTy) {
- return !RecordTy->getDecl()->isDefinition();
+ return !RecordTy->getDecl()->isCompleteDefinition();
}
/// ContainsIncompleteClassType - Returns whether the given type contains an