summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/ASTLocation.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-10-14 18:45:37 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-10-14 18:45:37 +0000
commitb89514a9b84ae625a1cfca1e4dfdf4542c61cee5 (patch)
treec547581de4165e8a3b2dec2cc579bd21a4983867 /clang/lib/Index/ASTLocation.cpp
parent47b5b31e616488865468dcec195b3d16b1a15fce (diff)
downloadbcm5719-llvm-b89514a9b84ae625a1cfca1e4dfdf4542c61cee5.tar.gz
bcm5719-llvm-b89514a9b84ae625a1cfca1e4dfdf4542c61cee5.zip
Change operator<< for raw_ostream and NamedDecl to take a reference instead of a pointer.
Passing a pointer was a bad idea as it collides with the overload for void*. llvm-svn: 141971
Diffstat (limited to 'clang/lib/Index/ASTLocation.cpp')
-rw-r--r--clang/lib/Index/ASTLocation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Index/ASTLocation.cpp b/clang/lib/Index/ASTLocation.cpp
index 1a4f19d0f66..66b393eb657 100644
--- a/clang/lib/Index/ASTLocation.cpp
+++ b/clang/lib/Index/ASTLocation.cpp
@@ -86,7 +86,7 @@ void ASTLocation::print(raw_ostream &OS) const {
case N_Decl:
OS << "[Decl: " << AsDecl()->getDeclKindName() << " ";
if (const NamedDecl *ND = dyn_cast<NamedDecl>(AsDecl()))
- OS << ND;
+ OS << *ND;
break;
case N_Stmt:
@@ -96,7 +96,7 @@ void ASTLocation::print(raw_ostream &OS) const {
case N_NamedRef:
OS << "[NamedRef: " << AsNamedRef().ND->getDeclKindName() << " ";
- OS << AsNamedRef().ND;
+ OS << *AsNamedRef().ND;
break;
case N_Type: {
OpenPOWER on IntegriCloud