diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-symbolizer/LLVMSymbolize.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-symbolizer/LLVMSymbolize.cpp b/tools/llvm-symbolizer/LLVMSymbolize.cpp index 42e76f8c85..227580f465 100644 --- a/tools/llvm-symbolizer/LLVMSymbolize.cpp +++ b/tools/llvm-symbolizer/LLVMSymbolize.cpp @@ -181,7 +181,8 @@ static bool getObjectEndianness(const ObjectFile *Obj, static ObjectFile *getObjectFile(const std::string &Path) { OwningPtr<MemoryBuffer> Buff; - MemoryBuffer::getFile(Path, Buff); + if (error_code ec = MemoryBuffer::getFile(Path, Buff)) + error(ec); return ObjectFile::createObjectFile(Buff.take()); } |