summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-06-11 21:57:15 +0000
committerReid Kleckner <reid@kleckner.net>2014-06-11 21:57:15 +0000
commit13a979911a9737c0acc9bee630bc0a970500a9de (patch)
tree6010ba4cd3a2df6c2a2eb1aa2732b05b0dfcc38a /clang/lib/Sema/SemaExpr.cpp
parent70fbe6f80e5836377f8b50098aa869e962ccf41a (diff)
downloadbcm5719-llvm-13a979911a9737c0acc9bee630bc0a970500a9de.tar.gz
bcm5719-llvm-13a979911a9737c0acc9bee630bc0a970500a9de.zip
Don't slice SemaDiagnosticBuilder
I wasn't able to figure out how to emit this diagnostic from a SFINAE context, so I don't have a test. llvm-svn: 210713
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 408a8a40899..7c076f8e844 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -1952,9 +1952,8 @@ recoverFromMSUnqualifiedLookup(Sema &S, ASTContext &Context,
// Diagnose this as unqualified lookup into a dependent base class. If 'this'
// is available, suggest inserting 'this->' as a fixit.
SourceLocation Loc = NameInfo.getLoc();
- DiagnosticBuilder DB =
- S.Diag(Loc, diag::ext_undeclared_unqual_id_with_dependent_base)
- << NameInfo.getName() << RD;
+ auto DB = S.Diag(Loc, diag::ext_undeclared_unqual_id_with_dependent_base);
+ DB << NameInfo.getName() << RD;
if (!ThisType.isNull()) {
DB << FixItHint::CreateInsertion(Loc, "this->");
OpenPOWER on IntegriCloud