summaryrefslogtreecommitdiff
path: root/lib/IR/GCOV.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-11-15 09:44:17 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-11-15 09:44:17 +0000
commitd881c1bdd1f63bbbdb8eec5f6ae7fd765103972f (patch)
treeb5e53314a1bbb99221b04b68292ad21be33c091f /lib/IR/GCOV.cpp
parentec3ce8a99d9e024d45b3ab9327193030b7eba951 (diff)
downloadllvm-d881c1bdd1f63bbbdb8eec5f6ae7fd765103972f.tar.gz
llvm-d881c1bdd1f63bbbdb8eec5f6ae7fd765103972f.tar.bz2
llvm-d881c1bdd1f63bbbdb8eec5f6ae7fd765103972f.tar.xz
llvm-cov: Clean up memory leaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/GCOV.cpp')
-rw-r--r--lib/IR/GCOV.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/GCOV.cpp b/lib/IR/GCOV.cpp
index d175414884..f0f8c7d74b 100644
--- a/lib/IR/GCOV.cpp
+++ b/lib/IR/GCOV.cpp
@@ -292,7 +292,7 @@ void FileInfo::print(raw_fd_ostream &OS, StringRef gcnoFile,
errs() << Filename << ": " << ec.message() << "\n";
return;
}
- StringRef AllLines = Buff.take()->getBuffer();
+ StringRef AllLines = Buff->getBuffer();
uint32_t i = 0;
while (!AllLines.empty()) {
if (L.find(i) != L.end()) {