[lld] r256370 - Remove unnecessary explicit instantiation.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 24 00:41:55 PST 2015


Author: ruiu
Date: Thu Dec 24 02:41:55 2015
New Revision: 256370

URL: http://llvm.org/viewvc/llvm-project?rev=256370&view=rev
Log:
Remove unnecessary explicit instantiation.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=256370&r1=256369&r2=256370&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu Dec 24 02:41:55 2015
@@ -1147,7 +1147,7 @@ template <class ELFT> void Writer<ELFT>:
 template <class ELFT> void Writer<ELFT>::openFile(StringRef Path) {
   ErrorOr<std::unique_ptr<FileOutputBuffer>> BufferOrErr =
       FileOutputBuffer::create(Path, FileSize, FileOutputBuffer::F_executable);
-  error(BufferOrErr, Twine("failed to open ") + Path);
+  error(BufferOrErr, "failed to open " + Path);
   Buffer = std::move(*BufferOrErr);
 }
 




More information about the llvm-commits mailing list