Handle empty dynamic lists.

llvm-svn: 312820
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 0e2504e..d667894 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -1244,7 +1244,7 @@
     return true;
 
   // If we have a dynamic list it specifies which local symbols are preemptible.
-  if (!Config->DynamicList.empty())
+  if (Config->HasDynamicList)
     return false;
 
   if (!Config->Shared)