From 9761f6f082f04a4f9fe141163745a8bfc9b96031 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 23 Oct 2015 16:43:18 +0000 Subject: [PATCH] [StaticAnalyzer] Use llvm::utostr and not to_string. 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/StaticAnalyzer/Core/IssueHash.cpp b/lib/StaticAnalyzer/Core/IssueHash.cpp index 6321e4b28f..abe20d6774 100644 --- a/lib/StaticAnalyzer/Core/IssueHash.cpp +++ b/lib/StaticAnalyzer/Core/IssueHash.cpp @@ -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(); } -- 2.40.0