Fix a few windows only tests.

This argument must be non-null.

llvm-svn: 252336
This commit is contained in:
Rafael Espindola 2015-11-06 19:57:37 +00:00
parent 4731bea3e5
commit 7bcaec83be

View File

@ -572,7 +572,9 @@ public:
P += Sym.size() + 1;
memcpy(P, DLLName.data(), DLLName.size());
object::Archive::Child C(Parent, Buf, nullptr);
std::error_code EC;
object::Archive::Child C(Parent, Buf, &EC);
assert(!EC && "We created an invalid buffer");
return NewArchiveIterator(C, DLLName);
}