Use Twin instead of std::to_string.
http://reviews.llvm.org/D14095 llvm-svn: 251365
This commit is contained in:
@@ -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) + "'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user