diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-09 16:13:40 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-09 16:13:40 +0000 |
commit | ed0cfbdad12dd5a504b38ad05161aa85a3b54ca6 (patch) | |
tree | c2eee98f7422af3670b093acc8330807e517152c /clang/lib/Sema/SemaNamedCast.cpp | |
parent | 5cbd3d9c52a244ce34ddd0606902882bb5bf7897 (diff) | |
download | bcm5719-llvm-ed0cfbdad12dd5a504b38ad05161aa85a3b54ca6.tar.gz bcm5719-llvm-ed0cfbdad12dd5a504b38ad05161aa85a3b54ca6.zip |
Rename DiagnoseIncompleteType to RequireCompleteType, and update the documentation to reflect the fact that we can instantiate templates here
llvm-svn: 66421
Diffstat (limited to 'clang/lib/Sema/SemaNamedCast.cpp')
-rw-r--r-- | clang/lib/Sema/SemaNamedCast.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaNamedCast.cpp b/clang/lib/Sema/SemaNamedCast.cpp index 166ed24d92e..fbde930f0b5 100644 --- a/clang/lib/Sema/SemaNamedCast.cpp +++ b/clang/lib/Sema/SemaNamedCast.cpp @@ -776,7 +776,7 @@ CheckDynamicCast(Sema &Self, Expr *&SrcExpr, QualType DestType, if (DestPointee->isVoidType()) { assert(DestPointer && "Reference to void is not possible"); } else if (DestRecord) { - if (Self.DiagnoseIncompleteType(OpRange.getBegin(), DestPointee, + if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, diag::err_bad_dynamic_cast_incomplete, DestRange)) return; @@ -810,7 +810,7 @@ CheckDynamicCast(Sema &Self, Expr *&SrcExpr, QualType DestType, const RecordType *SrcRecord = SrcPointee->getAsRecordType(); if (SrcRecord) { - if (Self.DiagnoseIncompleteType(OpRange.getBegin(), SrcPointee, + if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee, diag::err_bad_dynamic_cast_incomplete, SrcExpr->getSourceRange())) return; |