Adding qualifier for make_unique.

Summary: MSVC gets confused.

Differential Revision: http://reviews.llvm.org/D14585

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252804 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mike Aizatsky 2015-11-11 21:28:40 +00:00
parent 07261cbac2
commit 4683dafb93

View File

@ -116,7 +116,7 @@ class CoverageData {
return make_error_code(errc::illegal_byte_sequence);
}
auto Addrs = make_unique<std::vector<uint64_t>>();
auto Addrs = llvm::make_unique<std::vector<uint64_t>>();
switch (Header->Bitness) {
case Bitness64:
@ -143,7 +143,7 @@ class CoverageData {
for (const auto &Cov : Covs)
Addrs.insert(Cov->Addrs->begin(), Cov->Addrs->end());
auto AddrsVector = make_unique<std::vector<uint64_t>>(
auto AddrsVector = llvm::make_unique<std::vector<uint64_t>>(
Addrs.begin(), Addrs.end());
return std::unique_ptr<CoverageData>(
new CoverageData(std::move(AddrsVector)));