X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/489ad7089ae78c3de5cc4283d617d5490b781b11..d6e574615c187152156664bc1ebae07b9a67c542:/packages/libllvm/tools-clang-lib-StaticAnalyzer-Checkers-ExprInspectionChecker.cpp.patch?ds=inline diff --git a/packages/libllvm/tools-clang-lib-StaticAnalyzer-Checkers-ExprInspectionChecker.cpp.patch b/packages/libllvm/tools-clang-lib-StaticAnalyzer-Checkers-ExprInspectionChecker.cpp.patch new file mode 100644 index 00000000..fb6c1f1c --- /dev/null +++ b/packages/libllvm/tools-clang-lib-StaticAnalyzer-Checkers-ExprInspectionChecker.cpp.patch @@ -0,0 +1,20 @@ +diff -u -r ../llvm-4.0.0.src/tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp ./tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp +--- ../llvm-4.0.0.src/tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp 2016-11-30 18:57:18.000000000 +0100 ++++ ./tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp 2017-03-14 18:11:26.984865292 +0100 +@@ -12,6 +12,7 @@ + #include "clang/StaticAnalyzer/Core/Checker.h" + #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h" + #include "clang/StaticAnalyzer/Checkers/SValExplainer.h" ++#include "llvm/ADT/StringExtras.h" + #include "llvm/ADT/StringSwitch.h" + + using namespace clang; +@@ -269,7 +270,7 @@ + unsigned NumTimesReached = Item.second.NumTimesReached; + ExplodedNode *N = Item.second.ExampleNode; + +- reportBug(std::to_string(NumTimesReached), BR, N); ++ reportBug(llvm::utostr(NumTimesReached), BR, N); + } + } +