Fix the "make_unique is ambiguous" compiler error.

llvm-svn: 346839
This commit is contained in:
Haojian Wu 2018-11-14 09:42:28 +00:00
parent 692f12b389
commit 01b098840f
2 changed files with 4 additions and 4 deletions

View File

@ -169,8 +169,8 @@ public:
GetDirectory().CopyByAppendingPathComponent("gdb-remote.yaml");
std::error_code EC;
m_stream_up = make_unique<raw_fd_ostream>(history_file.GetPath(), EC,
sys::fs::OpenFlags::F_None);
m_stream_up = llvm::make_unique<raw_fd_ostream>(history_file.GetPath(), EC,
sys::fs::OpenFlags::F_None);
return m_stream_up.get();
}

View File

@ -152,8 +152,8 @@ void Generator::AddProviderToIndex(const ProviderInfo &provider_info) {
index.AppendPathComponent("index.yaml");
std::error_code EC;
auto strm = make_unique<raw_fd_ostream>(index.GetPath(), EC,
sys::fs::OpenFlags::F_None);
auto strm = llvm::make_unique<raw_fd_ostream>(index.GetPath(), EC,
sys::fs::OpenFlags::F_None);
yaml::Output yout(*strm);
yout << const_cast<ProviderInfo &>(provider_info);
}