[lld] r193445 - [PECOFF] Fix XML output bug.

Rui Ueyama ruiu at google.com
Fri Oct 25 15:36:21 PDT 2013


Author: ruiu
Date: Fri Oct 25 17:36:21 2013
New Revision: 193445

URL: http://llvm.org/viewvc/llvm-project?rev=193445&view=rev
Log:
[PECOFF] Fix XML output bug.

We really need a test for the manifest file output, but because it depends
on external commands (CVTRES.EXE and RC.EXE), it's not very easy to write it.

Modified:
    lld/trunk/lib/Driver/WinLinkDriver.cpp

Modified: lld/trunk/lib/Driver/WinLinkDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/WinLinkDriver.cpp?rev=193445&r1=193444&r2=193445&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkDriver.cpp (original)
+++ lld/trunk/lib/Driver/WinLinkDriver.cpp Fri Oct 25 17:36:21 2013
@@ -254,7 +254,7 @@ void quoteAndPrintXml(raw_ostream &out,
       return;
     StringRef line;
     llvm::tie(line, str) = str.split("\n");
-    if (!line.empty())
+    if (line.empty())
       continue;
     out << '\"';
     const char *p = line.data();





More information about the llvm-commits mailing list