Work-around MSVS build breakage due to r208148
authorTimur Iskhodzhanov <timurrrr@google.com>
Wed, 7 May 2014 08:52:13 +0000 (08:52 +0000)
committerTimur Iskhodzhanov <timurrrr@google.com>
Wed, 7 May 2014 08:52:13 +0000 (08:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208171 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/GCOV.cpp

index 7a89723d85561ce4df776463c417e577b9bb9c54..e8d26e0d9e155a1adda5b22a31976f970d5213b9 100644 (file)
@@ -514,8 +514,10 @@ FileInfo::openCoveragePath(StringRef CoveragePath) {
     return make_unique<raw_null_ostream>();
 
   std::string ErrorInfo;
-  auto OS = make_unique<raw_fd_ostream>(CoveragePath.str().c_str(), ErrorInfo,
-                                        sys::fs::F_Text);
+  // FIXME: When using MSVS, we end up having both std::make_unique and
+  // llvm::make_unique which conflict.  Explicitly use the llvm:: version.
+  auto OS = llvm::make_unique<raw_fd_ostream>(CoveragePath.str().c_str(),
+                                              ErrorInfo, sys::fs::F_Text);
   if (!ErrorInfo.empty()) {
     errs() << ErrorInfo << "\n";
     return make_unique<raw_null_ostream>();