forked from OSchip/llvm-project
Fix the "make_unique is ambiguous" compiler error.
llvm-svn: 346839
This commit is contained in:
parent
692f12b389
commit
01b098840f
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue