[libFuzzer] when a new unit is discovered using a dictionary, print all used dictiona...
[oota-llvm.git] / lib / Object / ObjectFile.cpp
index f82edae89bc6d98d41cd69389b61003b34fe83c8..d12dc411361c80fa9b6fdb35da361f8a6c69b786 100644 (file)
@@ -29,10 +29,10 @@ ObjectFile::ObjectFile(unsigned int Type, MemoryBufferRef Source)
     : SymbolicFile(Type, Source) {}
 
 bool SectionRef::containsSymbol(SymbolRef S) const {
-  section_iterator SymSec = getObject()->section_end();
-  if (S.getSection(SymSec))
+  ErrorOr<section_iterator> SymSec = S.getSection();
+  if (!SymSec)
     return false;
-  return *this == *SymSec;
+  return *this == **SymSec;
 }
 
 uint64_t ObjectFile::getSymbolValue(DataRefImpl Ref) const {