forked from OSchip/llvm-project
parent
0a74a60bc4
commit
3f6994b3c7
|
@ -318,8 +318,7 @@ llvm::writeArchive(StringRef ArcName,
|
||||||
MemberRef = Buffers.back()->getMemBufferRef();
|
MemberRef = Buffers.back()->getMemBufferRef();
|
||||||
} else {
|
} else {
|
||||||
object::Archive::child_iterator OldMember = Member.getOld();
|
object::Archive::child_iterator OldMember = Member.getOld();
|
||||||
assert(!Thin ||
|
assert((!Thin || OldMember->getParent()->isThin()) &&
|
||||||
OldMember->getParent()->isThin() &&
|
|
||||||
"Thin archives cannot refers to member of other archives");
|
"Thin archives cannot refers to member of other archives");
|
||||||
ErrorOr<MemoryBufferRef> MemberBufferOrErr =
|
ErrorOr<MemoryBufferRef> MemberBufferOrErr =
|
||||||
OldMember->getMemoryBufferRef();
|
OldMember->getMemoryBufferRef();
|
||||||
|
|
Loading…
Reference in New Issue