From: Chris Lattner Date: Thu, 17 Feb 2011 05:38:27 +0000 (+0000) Subject: simplify a bit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6810630bb00ba2944cbeb54834f38f69dbddfd7f;p=clang simplify a bit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125724 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Checkers/CStringChecker.cpp b/lib/StaticAnalyzer/Checkers/CStringChecker.cpp index 1fa4d57894..1981b87edc 100644 --- a/lib/StaticAnalyzer/Checkers/CStringChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/CStringChecker.cpp @@ -496,7 +496,7 @@ SVal CStringChecker::getCStringLength(CheckerContext &C, const GRState *&state, llvm::SmallString<120> buf; llvm::raw_svector_ostream os(buf); os << "Argument to byte string function is the address of the label '" - << Label->getLabel()->getID()->getName() + << Label->getLabel()->getName() << "', which is not a null-terminated string"; // Generate a report for this bug. diff --git a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index 7bd0249422..9d3a887cdb 100644 --- a/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -380,9 +380,7 @@ bool MallocChecker::SummarizeValue(llvm::raw_ostream& os, SVal V) { else if (loc::ConcreteInt *ConstAddr = dyn_cast(&V)) os << "a constant address (" << ConstAddr->getValue() << ")"; else if (loc::GotoLabel *Label = dyn_cast(&V)) - os << "the address of the label '" - << Label->getLabel()->getID()->getName() - << "'"; + os << "the address of the label '" << Label->getLabel()->getName() << "'"; else return false;