[lld] r182714 - Remove unreachable statement.
Rui Ueyama
ruiu at google.com
Sat May 25 18:25:39 PDT 2013
Author: ruiu
Date: Sat May 25 20:25:39 2013
New Revision: 182714
URL: http://llvm.org/viewvc/llvm-project?rev=182714&view=rev
Log:
Remove unreachable statement.
Modified:
lld/trunk/lib/ReaderWriter/MachO/WriterMachO.cpp
Modified: lld/trunk/lib/ReaderWriter/MachO/WriterMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/WriterMachO.cpp?rev=182714&r1=182713&r2=182714&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/WriterMachO.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/WriterMachO.cpp Sat May 25 20:25:39 2013
@@ -1499,9 +1499,7 @@ error_code MachOWriter::writeFile(const
<< "\n");
chunk->write(buffer->getBufferStart()+chunk->fileOffset());
}
-
return buffer->commit();
- return error_code::success();
}
void MachOWriter::addFiles(InputFiles &inputFiles) {
@@ -1517,4 +1515,3 @@ std::unique_ptr<Writer> createWriterMach
}
} // namespace lld
-
More information about the llvm-commits
mailing list