diff options
Diffstat (limited to 'lib/Object/Binary.cpp')
-rw-r--r-- | lib/Object/Binary.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Object/Binary.cpp b/lib/Object/Binary.cpp index 012e328..5d816e1 100644 --- a/lib/Object/Binary.cpp +++ b/lib/Object/Binary.cpp @@ -45,8 +45,7 @@ error_code object::createBinary(MemoryBuffer *Source, OwningPtr<MemoryBuffer> scopedSource(Source); if (!Source) return make_error_code(errc::invalid_argument); - sys::LLVMFileType type = sys::IdentifyFileType(Source->getBufferStart(), - static_cast<unsigned>(Source->getBufferSize())); + sys::LLVMFileType type = sys::identifyFileType(Source->getBuffer()); error_code ec; switch (type) { case sys::Archive_FileType: { |