diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-11-15 09:44:17 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-11-15 09:44:17 +0000 |
commit | d881c1bdd1f63bbbdb8eec5f6ae7fd765103972f (patch) | |
tree | b5e53314a1bbb99221b04b68292ad21be33c091f /lib | |
parent | ec3ce8a99d9e024d45b3ab9327193030b7eba951 (diff) | |
download | external_llvm-d881c1bdd1f63bbbdb8eec5f6ae7fd765103972f.zip external_llvm-d881c1bdd1f63bbbdb8eec5f6ae7fd765103972f.tar.gz external_llvm-d881c1bdd1f63bbbdb8eec5f6ae7fd765103972f.tar.bz2 |
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')
-rw-r--r-- | lib/IR/GCOV.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/GCOV.cpp b/lib/IR/GCOV.cpp index d175414..f0f8c7d 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()) { |