Skip to content

Commit

Permalink
Print error messages from MemoryBuffer::getFile() in llvm-symbolizer
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174346 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Alexey Samsonov committed Feb 5, 2013
1 parent e1b6b52 commit 933b851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/llvm-symbolizer/LLVMSymbolize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 933b851

Please sign in to comment.