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/SemaExprCXX.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/SemaExprCXX.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 37e4fdb24d5..8453b4e88c3 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -177,7 +177,7 @@ Sema::ActOnCXXTypeConstructExpr(SourceRange TypeRange, TypeTy *TypeRep, if (Ty->isArrayType()) return Diag(TyBeginLoc, diag::err_value_init_for_array_type) << FullRange; if (!Ty->isDependentType() && !Ty->isVoidType() && - DiagnoseIncompleteType(TyBeginLoc, Ty, + RequireCompleteType(TyBeginLoc, Ty, diag::err_invalid_incomplete_type_use, FullRange)) return true; @@ -595,7 +595,7 @@ Sema::ActOnCXXDelete(SourceLocation StartLoc, bool UseGlobal, QualType Pointee = Type->getAsPointerType()->getPointeeType(); if (!Pointee->isVoidType() && - DiagnoseIncompleteType(StartLoc, Pointee, diag::warn_delete_incomplete, + RequireCompleteType(StartLoc, Pointee, diag::warn_delete_incomplete, Ex->getSourceRange())) return true; else if (!Pointee->isObjectType()) { |