diff options
author | Oleksiy Vyalov <ovyalov@google.com> | 2015-10-26 22:37:36 +0000 |
---|---|---|
committer | Oleksiy Vyalov <ovyalov@google.com> | 2015-10-26 22:37:36 +0000 |
commit | 6c2403f3fa93505221be7195a75753932ec9f9a2 (patch) | |
tree | 6cfbef191ad601b04494830a848901c14b635102 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 465fbe25c4e8a68ee62d1893a83b1b9c69031a17 (diff) | |
download | bcm5719-llvm-6c2403f3fa93505221be7195a75753932ec9f9a2.tar.gz bcm5719-llvm-6c2403f3fa93505221be7195a75753932ec9f9a2.zip |
Use Twin instead of std::to_string.
http://reviews.llvm.org/D14095
llvm-svn: 251365
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index d926f324145..318b2368cd9 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/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) + "'"); } } } |