Skip to content

Commit

Permalink
Adding qualifier for make_unique.
Browse files Browse the repository at this point in the history
Summary: MSVC gets confused.

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

llvm-svn: 252804
  • Loading branch information
aizatsky-chromium committed Nov 11, 2015
1 parent b8058a5 commit 8b2e052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/tools/sancov/sancov.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)));
Expand Down

0 comments on commit 8b2e052

Please sign in to comment.