summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/TreeTransform.h
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2018-03-28 04:16:13 +0000
committerRichard Trieu <rtrieu@google.com>2018-03-28 04:16:13 +0000
commitb402580616617a5c2d80f3d1c343b8f74bd7c3b5 (patch)
treed360a3d9382d397d8da2c23771a4e3a6f56bbe55 /clang/lib/Sema/TreeTransform.h
parenta95b0df5eddbe7fa1e9f8fe0b1ff62427e1c0318 (diff)
downloadbcm5719-llvm-b402580616617a5c2d80f3d1c343b8f74bd7c3b5.tar.gz
bcm5719-llvm-b402580616617a5c2d80f3d1c343b8f74bd7c3b5.zip
Fix some handling of AST nodes with diagnostics.
The diagnostic system for Clang can already handle many AST nodes. Instead of converting them to strings first, just hand the AST node directly to the diagnostic system and let it handle the output. Minor changes in some diagnostic output. llvm-svn: 328688
Diffstat (limited to 'clang/lib/Sema/TreeTransform.h')
-rw-r--r--clang/lib/Sema/TreeTransform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h
index 7d52394bd7a..4119e7a4ab8 100644
--- a/clang/lib/Sema/TreeTransform.h
+++ b/clang/lib/Sema/TreeTransform.h
@@ -10388,7 +10388,7 @@ bool TreeTransform<Derived>::TransformOverloadExprDecls(OverloadExpr *Old,
// the corresponding pack is empty
if (AllEmptyPacks && !RequiresADL) {
getSema().Diag(Old->getNameLoc(), diag::err_using_pack_expansion_empty)
- << isa<UnresolvedMemberExpr>(Old) << Old->getNameInfo().getName();
+ << isa<UnresolvedMemberExpr>(Old) << Old->getName();
return true;
}
OpenPOWER on IntegriCloud