summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/RecordLayoutBuilder.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
commitf937c023bf5da08b0d218d183b0d762c60917794 (patch)
treebcf1c52d2f5dd732fcc95d110c650e0aaba4189d /clang/lib/AST/RecordLayoutBuilder.cpp
parentbf136764ae7ad1e61f703822fc0df9608bd207d7 (diff)
downloadbcm5719-llvm-f937c023bf5da08b0d218d183b0d762c60917794.tar.gz
bcm5719-llvm-f937c023bf5da08b0d218d183b0d762c60917794.zip
Rename TagDecl::isDefinition -> isCompleteDefinition
for better self-documenting code, since the semantics are subtly different from getDefinition(). llvm-svn: 141355
Diffstat (limited to 'clang/lib/AST/RecordLayoutBuilder.cpp')
-rw-r--r--clang/lib/AST/RecordLayoutBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/RecordLayoutBuilder.cpp b/clang/lib/AST/RecordLayoutBuilder.cpp
index 369ebec3ddf..f351d76d76d 100644
--- a/clang/lib/AST/RecordLayoutBuilder.cpp
+++ b/clang/lib/AST/RecordLayoutBuilder.cpp
@@ -2013,7 +2013,7 @@ ASTContext::getASTRecordLayout(const RecordDecl *D) const {
// until we *finish* parsing the definition.
D = D->getDefinition();
assert(D && "Cannot get layout of forward declarations!");
- assert(D->isDefinition() && "Cannot layout type before complete!");
+ assert(D->isCompleteDefinition() && "Cannot layout type before complete!");
// Look up this layout, if already laid out, return what we have.
// Note that we can't save a reference to the entry because this function
OpenPOWER on IntegriCloud