Use Twin instead of std::to_string.
[oota-llvm.git] / lib / Bitcode / Reader / BitcodeReader.cpp
index d926f324145cd7dda4e4439e65775ed23172f8ca..318b2368cd9afbbf34c0246d3380ab79e055d36f 100644 (file)
@@ -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) + "'");
       }
     }
     }