forked from OSchip/llvm-project
llvm-cov: Explicitly namespace llvm::make_unique to keep MSVC happy
This is a followup to r208171, where a call to make_unique was disambiguated for MSVC. Disambiguate two more calls, and remove the comment about it since this is what we do everywhere. llvm-svn: 208219
This commit is contained in:
parent
de3e36be38
commit
7c093732e8
|
|
@ -511,16 +511,14 @@ std::string FileInfo::getCoveragePath(StringRef Filename,
|
|||
std::unique_ptr<raw_ostream>
|
||||
FileInfo::openCoveragePath(StringRef CoveragePath) {
|
||||
if (Options.NoOutput)
|
||||
return make_unique<raw_null_ostream>();
|
||||
return llvm::make_unique<raw_null_ostream>();
|
||||
|
||||
std::string ErrorInfo;
|
||||
// FIXME: When using MSVS, we end up having both std::make_unique and
|
||||
// llvm::make_unique which conflict. Explicitly use the llvm:: version.
|
||||
auto OS = llvm::make_unique<raw_fd_ostream>(CoveragePath.str().c_str(),
|
||||
ErrorInfo, sys::fs::F_Text);
|
||||
if (!ErrorInfo.empty()) {
|
||||
errs() << ErrorInfo << "\n";
|
||||
return make_unique<raw_null_ostream>();
|
||||
return llvm::make_unique<raw_null_ostream>();
|
||||
}
|
||||
return std::move(OS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue