[llvm] r252804 - Adding qualifier for make_unique.
Mike Aizatsky via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 13:28:41 PST 2015
Author: aizatsky
Date: Wed Nov 11 15:28:40 2015
New Revision: 252804
URL: http://llvm.org/viewvc/llvm-project?rev=252804&view=rev
Log:
Adding qualifier for make_unique.
Summary: MSVC gets confused.
Differential Revision: http://reviews.llvm.org/D14585
Modified:
llvm/trunk/tools/sancov/sancov.cc
Modified: llvm/trunk/tools/sancov/sancov.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/sancov/sancov.cc?rev=252804&r1=252803&r2=252804&view=diff
==============================================================================
--- llvm/trunk/tools/sancov/sancov.cc (original)
+++ llvm/trunk/tools/sancov/sancov.cc Wed Nov 11 15:28:40 2015
@@ -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)));
More information about the llvm-commits
mailing list