1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Fix lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp for r273701

and the change to libObject’s getSymbolAddress() to Expected<...> .

llvm-svn: 273740
This commit is contained in:
Kevin Enderby 2016-06-24 22:38:30 +00:00
parent 7805d75e78
commit 806077d05c

View File

@ -130,9 +130,12 @@ void IntelJITEventListener::NotifyObjectEmitted(
continue;
}
ErrorOr<uint64_t> AddrOrErr = Sym.getAddress();
if (AddrOrErr.getError())
Expected<uint64_t> AddrOrErr = Sym.getAddress();
if (!AddrOrErr) {
// TODO: Actually report errors helpfully.
consumeError(AddrOrErr.takeError());
continue;
}
uint64_t Addr = *AddrOrErr;
uint64_t Size = P.second;