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,7 +169,7 @@ public:
|
||||||
GetDirectory().CopyByAppendingPathComponent("gdb-remote.yaml");
|
GetDirectory().CopyByAppendingPathComponent("gdb-remote.yaml");
|
||||||
|
|
||||||
std::error_code EC;
|
std::error_code EC;
|
||||||
m_stream_up = make_unique<raw_fd_ostream>(history_file.GetPath(), EC,
|
m_stream_up = llvm::make_unique<raw_fd_ostream>(history_file.GetPath(), EC,
|
||||||
sys::fs::OpenFlags::F_None);
|
sys::fs::OpenFlags::F_None);
|
||||||
return m_stream_up.get();
|
return m_stream_up.get();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ void Generator::AddProviderToIndex(const ProviderInfo &provider_info) {
|
||||||
index.AppendPathComponent("index.yaml");
|
index.AppendPathComponent("index.yaml");
|
||||||
|
|
||||||
std::error_code EC;
|
std::error_code EC;
|
||||||
auto strm = make_unique<raw_fd_ostream>(index.GetPath(), EC,
|
auto strm = llvm::make_unique<raw_fd_ostream>(index.GetPath(), EC,
|
||||||
sys::fs::OpenFlags::F_None);
|
sys::fs::OpenFlags::F_None);
|
||||||
yaml::Output yout(*strm);
|
yaml::Output yout(*strm);
|
||||||
yout << const_cast<ProviderInfo &>(provider_info);
|
yout << const_cast<ProviderInfo &>(provider_info);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue