Author: Fangrui Song Date: 2024-02-16T14:10:43-08:00 New Revision: c92dfefd4686034667e6a7f0b012b4df421843e5
URL: https://github.com/llvm/llvm-project/commit/c92dfefd4686034667e6a7f0b012b4df421843e5 DIFF: https://github.com/llvm/llvm-project/commit/c92dfefd4686034667e6a7f0b012b4df421843e5.diff LOG: [-Wunsafe-buffer-usage] Remove unused function after 7c3ad9e72bc034ad655a7e16aa73b9864c58768b. NFC Added: Modified: clang/lib/Analysis/UnsafeBufferUsage.cpp Removed: ################################################################################ diff --git a/clang/lib/Analysis/UnsafeBufferUsage.cpp b/clang/lib/Analysis/UnsafeBufferUsage.cpp index 7734e56d1376de..1e37f62efcba76 100644 --- a/clang/lib/Analysis/UnsafeBufferUsage.cpp +++ b/clang/lib/Analysis/UnsafeBufferUsage.cpp @@ -1677,15 +1677,6 @@ std::string getUserFillPlaceHolder(StringRef HintTextToUser = "placeholder") { return s; } -// Return the text representation of the given `APInt Val`: -static std::string getAPIntText(APInt Val) { - SmallVector<char> Txt; - Val.toString(Txt, 10, true); - // APInt::toString does not add '\0' to the end of the string for us: - Txt.push_back('\0'); - return Txt.data(); -} - // Return the source location of the last character of the AST `Node`. template <typename NodeTy> static std::optional<SourceLocation> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits