Fix pecoff/export.test on Windows.
authorRui Ueyama <ruiu@google.com>
Wed, 11 Jun 2014 01:18:05 +0000 (01:18 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 11 Jun 2014 01:18:05 +0000 (01:18 +0000)
llvm-svn: 210621

lld/lib/ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h

index d8f7758..3cfc8a5 100644 (file)
@@ -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;