Fix broken unittest for GnuLDDriver.

llvm-svn: 186427
This commit is contained in:
Rui Ueyama 2013-07-16 17:17:01 +00:00
parent 7df03c2e30
commit cb1c8cce46
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ class GnuLdParserTest : public ParserTest<GnuLdDriver, ELFTargetInfo> {
protected:
virtual ELFTargetInfo* doParse(int argc, const char **argv,
raw_ostream &diag) {
std::unique_ptr<ELFTargetInfo> info(GnuLdDriver::parse(argc, argv, diag));
std::unique_ptr<ELFTargetInfo> info;
GnuLdDriver::parse(argc, argv, info, diag);
return info.release();
}
};