From 4881bdf1413aed8163e96c01e12f416cb61908a1 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Mon, 12 Dec 2016 18:47:33 +0000 Subject: [PATCH] Avoid use of std::to_string. NFC. Apparently this routine isn't available on some Android platforms. See the mailing list thread re: D21695. llvm-svn: 289452 --- clang/lib/CodeGen/CGExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index c08735d..2f1e1c9 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/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 = -- 2.7.4