[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:
Lang Hames 2016-04-29 21:29:48 +00:00
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) {