[lld] r213323 - References cannot be bound to null.

Joerg Sonnenberger joerg at bec.de
Thu Jul 17 15:30:09 PDT 2014


Author: joerg
Date: Thu Jul 17 17:30:09 2014
New Revision: 213323

URL: http://llvm.org/viewvc/llvm-project?rev=213323&view=rev
Log:
References cannot be bound to null.

Modified:
    lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp

Modified: lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp?rev=213323&r1=213322&r2=213323&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp (original)
+++ lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp Thu Jul 17 17:30:09 2014
@@ -61,8 +61,6 @@ class RefNameBuilder {
 public:
   RefNameBuilder(const lld::File &file)
       : _collisionCount(0), _unnamedCounter(0) {
-    if (&file == nullptr)
-      return;
     // visit all atoms
     for (const lld::DefinedAtom *atom : file.defined()) {
       // Build map of atoms names to detect duplicates





More information about the llvm-commits mailing list