From bbe75b99f0b7fbcff52b6fcc126884c16b84797f Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Thu, 17 Jul 2014 22:30:09 +0000 Subject: [PATCH] References cannot be bound to null. llvm-svn: 213323 --- lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp index bf8e178..f68fd5a 100644 --- a/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp +++ b/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp @@ -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 -- 2.7.4