]> granicus.if.org Git - clang/commitdiff
Avoid use of std::to_string. NFC.
authorVedant Kumar <vsk@apple.com>
Mon, 12 Dec 2016 18:47:33 +0000 (18:47 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 12 Dec 2016 18:47:33 +0000 (18:47 +0000)
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

lib/CodeGen/CGExpr.cpp

index c08735d1afa2ee907796571541e6e23b2f10ae93..2f1e1c9385e684eb8365ebe3cc49b75def4a017f 100644 (file)
@@ -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 =