summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-12-12 18:47:33 +0000
committerVedant Kumar <vsk@apple.com>2016-12-12 18:47:33 +0000
commit4881bdf1413aed8163e96c01e12f416cb61908a1 (patch)
tree3ffcd1fe13b8cbe76cc376f146cf5745bc09d5f1 /clang/lib/CodeGen
parente50f4854c22459b8378ccc538b49b05bbd197c25 (diff)
downloadbcm5719-llvm-4881bdf1413aed8163e96c01e12f416cb61908a1.tar.gz
bcm5719-llvm-4881bdf1413aed8163e96c01e12f416cb61908a1.zip
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
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index c08735d1afa..2f1e1c9385e 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 =
OpenPOWER on IntegriCloud