diff options
author | Chris Lattner <sabre@nondot.org> | 2011-02-17 05:38:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-02-17 05:38:27 +0000 |
commit | 6810630bb00ba2944cbeb54834f38f69dbddfd7f (patch) | |
tree | e884ef3ab0fd5646361b38e412c4c8deab16391f /lib | |
parent | e594db5c2db5ca2a03203af2915fa88619417110 (diff) |
simplify a bit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/CStringChecker.cpp | 2 | ||||
-rw-r--r-- | lib/StaticAnalyzer/Checkers/MallocChecker.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
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<loc::ConcreteInt>(&V)) os << "a constant address (" << ConstAddr->getValue() << ")"; else if (loc::GotoLabel *Label = dyn_cast<loc::GotoLabel>(&V)) - os << "the address of the label '" - << Label->getLabel()->getID()->getName() - << "'"; + os << "the address of the label '" << Label->getLabel()->getName() << "'"; else return false; |