]> granicus.if.org Git - clang/commitdiff
simplify a bit.
authorChris Lattner <sabre@nondot.org>
Thu, 17 Feb 2011 05:38:27 +0000 (05:38 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 17 Feb 2011 05:38:27 +0000 (05:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125724 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/CStringChecker.cpp
lib/StaticAnalyzer/Checkers/MallocChecker.cpp

index 1fa4d57894844f79d85d98f639416c8279964f3c..1981b87edcd3dea5c8168e7b8bce79fe699c3183 100644 (file)
@@ -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.
index 7bd0249422afcf773c899366e33331a2df720cf6..9d3a887cdbf1d9372d3b6202f3376e2fb5dfae08 100644 (file)
@@ -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;