Don't own the buffer in object::Binary.
[oota-llvm.git] / include / llvm / ProfileData / CoverageMappingReader.h
index 0ad38824df8ed2cde1a9900f64f553f340802810..1d8b16e253299f4e818b28a5bcaad6593da80900 100644 (file)
@@ -157,7 +157,7 @@ public:
 
 private:
   std::error_code LastError;
-  std::unique_ptr<llvm::object::ObjectFile> Object;
+  object::OwningBinary<object::ObjectFile> Object;
   std::vector<StringRef> Filenames;
   std::vector<ProfileMappingRecord> MappingRecords;
   size_t CurrentRecord;