Attempt to fix a Linux buildbot.

llvm-svn: 226127
This commit is contained in:
Rui Ueyama 2015-01-15 05:41:12 +00:00
parent 24ebfcb619
commit 2b5a4fbc30
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ findFile(ELFLinkingContext &ctx, StringRef path, bool dashL) {
if (std::error_code ec = pathOrErr.getError())
return make_dynamic_error_code(
Twine("Unable to find library -l") + path + ": " + ec.message());
path = pathOrErr->str();
path = pathOrErr.get();
}
if (!llvm::sys::fs::exists(path))
return make_dynamic_error_code(