Update for llvm changes.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 26 Jun 2015 13:19:38 +0000 (13:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 26 Jun 2015 13:19:38 +0000 (13:19 +0000)
llvm-svn: 240781

lld/lib/ReaderWriter/FileArchive.cpp

index 94b46f4..d741dd1 100644 (file)
@@ -215,9 +215,7 @@ private:
         continue;
 
       // Returns true if it's a data symbol.
-      SymbolRef::Type type;
-      if (sym.getType(type))
-        return false;
+      SymbolRef::Type type = sym.getType();
       if (type == SymbolRef::ST_Data)
         return true;
     }