diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-25 09:42:26 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-25 09:42:26 +0000 |
commit | 7a9f49296a6454b7a6f0edce89dc99d413a7e14e (patch) | |
tree | 54c3bc8020b5e7e2b75e4093faf5f49a2938adb1 /lib/Sema/SemaExprCXX.cpp | |
parent | dfefb840e36f069286ef6cf178ef339c90f4603d (diff) |
Fix assertion (too few Diag arguments) when diagnosing a deleted operator delete
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 95bd617501..29d2138826 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -1881,7 +1881,8 @@ bool Sema::FindDeallocationFunction(SourceLocation StartLoc, CXXRecordDecl *RD, if (Operator->isDeleted()) { if (Diagnose) { Diag(StartLoc, diag::err_deleted_function_use); - Diag(Operator->getLocation(), diag::note_unavailable_here) << true; + Diag(Operator->getLocation(), diag::note_unavailable_here) + << /*function*/ 1 << /*deleted*/ 1; } return true; } |