summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceFileWriter.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-10-09 18:50:29 +0000
committerZachary Turner <zturner@google.com>2017-10-09 18:50:29 +0000
commit514b7105b52fb98939f2b982651ec876582250f4 (patch)
tree82c677faaf33dd0040f4534c4f9b51145469b7d8 /llvm/tools/llvm-rc/ResourceFileWriter.cpp
parent4f5a3d5d6f15d8624cd78b53246d633ca54619c1 (diff)
downloadbcm5719-llvm-514b7105b52fb98939f2b982651ec876582250f4.tar.gz
bcm5719-llvm-514b7105b52fb98939f2b982651ec876582250f4.zip
Fix some C++ value / reference semantics issues.
Some functions were taking Twine's not by const&, these are all fixed to take by const&. We also had a case where some functions were overloaded to accept by const& and &&. Now there is only one version which accepts by value and move's the value. llvm-svn: 315229
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceFileWriter.cpp')
-rw-r--r--llvm/tools/llvm-rc/ResourceFileWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-rc/ResourceFileWriter.cpp b/llvm/tools/llvm-rc/ResourceFileWriter.cpp
index 8b7cd92c053..3d72e16bf6e 100644
--- a/llvm/tools/llvm-rc/ResourceFileWriter.cpp
+++ b/llvm/tools/llvm-rc/ResourceFileWriter.cpp
@@ -380,7 +380,7 @@ void ResourceFileWriter::padStream(uint64_t Length) {
writeInt<uint8_t>(0);
}
-Error ResourceFileWriter::handleError(Error &&Err, const RCResource *Res) {
+Error ResourceFileWriter::handleError(Error Err, const RCResource *Res) {
if (Err)
return joinErrors(createError("Error in " + Res->getResourceTypeName() +
" statement (ID " + Twine(Res->ResName) +
OpenPOWER on IntegriCloud