[PATCH] D14095: Use Twin instead of std::to_string
Oleksiy Vyalov via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 26 15:24:33 PDT 2015
ovyalov updated this revision to Diff 38470.
ovyalov added a comment.
Addressed review comment.
http://reviews.llvm.org/D14095
Files:
lib/Bitcode/Reader/BitcodeReader.cpp
Index: lib/Bitcode/Reader/BitcodeReader.cpp
===================================================================
--- lib/Bitcode/Reader/BitcodeReader.cpp
+++ lib/Bitcode/Reader/BitcodeReader.cpp
@@ -3113,10 +3113,9 @@
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) + "'");
}
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14095.38470.patch
Type: text/x-patch
Size: 836 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151026/9a7f09ff/attachment.bin>
More information about the llvm-commits
mailing list