]> granicus.if.org Git - clang/commitdiff
[StaticAnalyzer] Fix android build
authorPavel Labath <labath@google.com>
Mon, 16 Jan 2017 15:57:07 +0000 (15:57 +0000)
committerPavel Labath <labath@google.com>
Mon, 16 Jan 2017 15:57:07 +0000 (15:57 +0000)
std::to_string is not available in the android NDK. Use llvm::to_string instead.

Committing as obvious.

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

lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp

index 2d5cb60edf7dab9142ed0dc6dc69e74a143321cd..fe48a942236b29b7b989279a6cd866bbe8899e2e 100644 (file)
@@ -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);
   }
 }