forked from OSchip/llvm-project
[Orc] Make sure we don't drop the internal error in OrcRemoteTargetClient when
the constructor fails, as this would lead to an 'unchecked error' crash. llvm-svn: 268111
This commit is contained in:
parent
d49a8f9b54
commit
ae643ee2d1
|
@ -693,8 +693,9 @@ private:
|
|||
std::tie(RemoteTargetTriple, RemotePointerSize, RemotePageSize,
|
||||
RemoteTrampolineSize, RemoteIndirectStubSize) = *RIOrErr;
|
||||
Err = Error::success();
|
||||
} else
|
||||
Err = RIOrErr.takeError();
|
||||
} else {
|
||||
Err = joinErrors(RIOrErr.takeError(), std::move(ExistingError));
|
||||
}
|
||||
}
|
||||
|
||||
Error deregisterEHFrames(TargetAddress Addr, uint32_t Size) {
|
||||
|
|
Loading…
Reference in New Issue