]> granicus.if.org Git - clang/commitdiff
[StaticAnalyzer] Use llvm::utostr and not to_string.
authorDavide Italiano <davide@freebsd.org>
Fri, 23 Oct 2015 16:43:18 +0000 (16:43 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 23 Oct 2015 16:43:18 +0000 (16:43 +0000)
The latter seems unsupported (at least) on MinGW and FreeBSD (where
I hit this failure). We can't have nice things.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251115 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/IssueHash.cpp

index 6321e4b28ff5eb31629c4a1506c66134d23c9ec5..abe20d6774f8dfb25baeb74b8a04937fc668c0d7 100644 (file)
@@ -14,6 +14,7 @@
 #include "clang/Basic/Specifiers.h"
 #include "clang/Lex/Lexer.h"
 #include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/LineIterator.h"
@@ -179,7 +180,7 @@ std::string clang::GetIssueString(const SourceManager &SM,
 
   return (llvm::Twine(CheckerName) + Delimiter +
           GetEnclosingDeclContextSignature(D) + Delimiter +
-          std::to_string(IssueLoc.getExpansionColumnNumber()) + Delimiter +
+          llvm::utostr(IssueLoc.getExpansionColumnNumber()) + Delimiter +
           NormalizeLine(SM, IssueLoc, D) + Delimiter + BugType)
       .str();
 }