[lld] r210621 - Fix pecoff/export.test on Windows.

Rui Ueyama ruiu at google.com
Tue Jun 10 18:18:06 PDT 2014


Author: ruiu
Date: Tue Jun 10 20:18:05 2014
New Revision: 210621

URL: http://llvm.org/viewvc/llvm-project?rev=210621&view=rev
Log:
Fix pecoff/export.test on Windows.

Modified:
    lld/trunk/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h

Modified: lld/trunk/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h?rev=210621&r1=210620&r2=210621&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h Tue Jun 10 20:18:05 2014
@@ -245,7 +245,7 @@ private:
         return false;
       if (it->size() == sym.size())
         continue;
-      StringRef suffix = it->substr(sym.size());
+      StringRef suffix = StringRef(*it).substr(sym.size());
       if (suffix.find_first_not_of("0123456789") != StringRef::npos)
         continue;
       res = *it;





More information about the llvm-commits mailing list