diff options
Diffstat (limited to 'llvm/tools/sancov/sancov.cc')
| -rw-r--r-- | llvm/tools/sancov/sancov.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/sancov/sancov.cc b/llvm/tools/sancov/sancov.cc index 4f8df41f2f1..8423d29e751 100644 --- a/llvm/tools/sancov/sancov.cc +++ b/llvm/tools/sancov/sancov.cc @@ -321,8 +321,8 @@ findSanitizerCovFunctions(const object::ObjectFile &O) { std::set<uint64_t> Result; for (const object::SymbolRef &Symbol : O.symbols()) { - ErrorOr<uint64_t> AddressOrErr = Symbol.getAddress(); - FailIfError(AddressOrErr); + Expected<uint64_t> AddressOrErr = Symbol.getAddress(); + FailIfError(errorToErrorCode(AddressOrErr.takeError())); Expected<StringRef> NameOrErr = Symbol.getName(); FailIfError(errorToErrorCode(NameOrErr.takeError())); |

