From: Vedant Kumar Date: Mon, 12 Dec 2016 18:47:33 +0000 (+0000) Subject: Avoid use of std::to_string. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4404557edb3cbaaa20f755e9eeb8ffacbf5af457;p=clang Avoid use of std::to_string. NFC. Apparently this routine isn't available on some Android platforms. See the mailing list thread re: D21695. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289452 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index c08735d1af..2f1e1c9385 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -2529,7 +2529,7 @@ static void emitCheckHandlerCall(CodeGenFunction &CGF, const StringRef CheckName = CheckInfo.Name; std::string FnName = ("__ubsan_handle_" + CheckName + - (CheckInfo.Version ? "_v" + std::to_string(CheckInfo.Version) : "") + + (CheckInfo.Version ? "_v" + llvm::utostr(CheckInfo.Version) : "") + (NeedsAbortSuffix ? "_abort" : "")) .str(); bool MayReturn =