[llvm] r251365 - Use Twin instead of std::to_string.

Oleksiy Vyalov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 26 15:37:36 PDT 2015


Author: ovyalov
Date: Mon Oct 26 17:37:36 2015
New Revision: 251365

URL: http://llvm.org/viewvc/llvm-project?rev=251365&view=rev
Log:
Use Twin instead of std::to_string.

http://reviews.llvm.org/D14095


Modified:
    llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp

Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=251365&r1=251364&r2=251365&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Mon Oct 26 17:37:36 2015
@@ -3113,10 +3113,9 @@ std::error_code BitcodeReader::parseBitc
     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) + "'");
       }
     }
     }




More information about the llvm-commits mailing list