diff options
author | Pavel Labath <labath@google.com> | 2017-01-16 15:57:07 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-01-16 15:57:07 +0000 |
commit | d570a61a6c0b5f57533f628b4920920a30160924 (patch) | |
tree | 13d11e1328d2a6f7ce3621eda9a6c3ab58d9ef98 /clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp | |
parent | 0032d8733760e7d018477a9c0e72c3e84f3c5752 (diff) | |
download | bcm5719-llvm-d570a61a6c0b5f57533f628b4920920a30160924.tar.gz bcm5719-llvm-d570a61a6c0b5f57533f628b4920920a30160924.zip |
[StaticAnalyzer] Fix android build
std::to_string is not available in the android NDK. Use llvm::to_string instead.
Committing as obvious.
llvm-svn: 292141
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp index 2d5cb60edf7..fe48a942236 100644 --- a/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp @@ -13,6 +13,7 @@ #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h" #include "clang/StaticAnalyzer/Checkers/SValExplainer.h" #include "llvm/ADT/StringSwitch.h" +#include "llvm/Support/ScopedPrinter.h" using namespace clang; using namespace ento; @@ -269,7 +270,7 @@ void ExprInspectionChecker::checkEndAnalysis(ExplodedGraph &G, BugReporter &BR, unsigned NumTimesReached = Item.second.NumTimesReached; ExplodedNode *N = Item.second.ExampleNode; - reportBug(std::to_string(NumTimesReached), BR, N); + reportBug(llvm::to_string(NumTimesReached), BR, N); } } |