[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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268111 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames 2016-04-29 21:29:48 +00:00
parent f8bfee254f
commit 2534484e89

View File

@ -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) {