From: Oleksiy Vyalov Date: Mon, 26 Oct 2015 22:37:36 +0000 (+0000) Subject: Use Twin instead of std::to_string. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=faf046c6c0a561e966f4ac671392c4b8e15c35a2;p=oota-llvm.git Use Twin instead of std::to_string. http://reviews.llvm.org/D14095 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251365 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index d926f324145..318b2368cd9 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -3113,10 +3113,9 @@ std::error_code BitcodeReader::parseBitcodeVersion() { case bitc::IDENTIFICATION_CODE_EPOCH: { // EPOCH: [epoch#] unsigned epoch = (unsigned)Record[0]; if (epoch != bitc::BITCODE_CURRENT_EPOCH) { - auto BitcodeEpoch = std::to_string(epoch); - auto CurrentEpoch = std::to_string(bitc::BITCODE_CURRENT_EPOCH); - return error(Twine("Incompatible epoch: Bitcode '") + BitcodeEpoch + - "' vs current: '" + CurrentEpoch + "'"); + return error( + Twine("Incompatible epoch: Bitcode '") + Twine(epoch) + + "' vs current: '" + Twine(bitc::BITCODE_CURRENT_EPOCH) + "'"); } } }