Don't return error_code from a function that doesn't fail.

llvm-svn: 241033
This commit is contained in:
Rafael Espindola
2015-06-30 01:53:01 +00:00
parent 9ba0fec83e
commit 99c041b72f
13 changed files with 26 additions and 49 deletions

View File

@@ -208,10 +208,7 @@ LLVMSymbolIteratorRef LLVMGetRelocationSymbol(LLVMRelocationIteratorRef RI) {
}
uint64_t LLVMGetRelocationType(LLVMRelocationIteratorRef RI) {
uint64_t ret;
if (std::error_code ec = (*unwrap(RI))->getType(ret))
report_fatal_error(ec.message());
return ret;
return (*unwrap(RI))->getType();
}
// NOTE: Caller takes ownership of returned string.