From b89514a9b84ae625a1cfca1e4dfdf4542c61cee5 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 14 Oct 2011 18:45:37 +0000 Subject: 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 --- clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp') diff --git a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp index d1a9782b897..1625219fc87 100644 --- a/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp @@ -803,7 +803,7 @@ bool CStringChecker::SummarizeRegion(raw_ostream &os, ASTContext &Ctx, case MemRegion::FunctionTextRegionKind: { const FunctionDecl *FD = cast(MR)->getDecl(); if (FD) - os << "the address of the function '" << FD << "'"; + os << "the address of the function '" << *FD << '\''; else os << "the address of a function"; return true; -- cgit v1.2.3