Remove more superfluous .str() and replace std::string concatenation with Twine.
[oota-llvm.git] / lib / IR / GCOV.cpp
index 7010cebfb8751cd8061dd1f36c42f0170e7be562..6ed589131725e82700fbe97f01a60ed96ed33ab6 100644 (file)
@@ -555,7 +555,7 @@ FileInfo::openCoveragePath(StringRef CoveragePath) {
     return llvm::make_unique<raw_null_ostream>();
 
   std::error_code EC;
-  auto OS = llvm::make_unique<raw_fd_ostream>(CoveragePath.str(), EC,
+  auto OS = llvm::make_unique<raw_fd_ostream>(CoveragePath, EC,
                                               sys::fs::F_Text);
   if (EC) {
     errs() << EC.message() << "\n";