diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-11-01 15:03:47 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-11-01 15:03:47 +0000 |
| commit | f09b6c9c85a7fd8b5b999c1ce4ae1766c2565e0b (patch) | |
| tree | ecf70f92fb25327e2d0c399cfaf83e3081caf815 /clang/lib/Serialization | |
| parent | 1614597873fa80a8d56d42ab20230ca260daa448 (diff) | |
| download | bcm5719-llvm-f09b6c9c85a7fd8b5b999c1ce4ae1766c2565e0b.tar.gz bcm5719-llvm-f09b6c9c85a7fd8b5b999c1ce4ae1766c2565e0b.zip | |
Plug a leak in the preprocessing record's handling of inclusion
directives. We had a std::string in an object that was allocated via a
BumpPtrAllocator.
llvm-svn: 117912
Diffstat (limited to 'clang/lib/Serialization')
| -rw-r--r-- | clang/lib/Serialization/ASTReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp index 22d3cbc68f7..5c947bc6395 100644 --- a/clang/lib/Serialization/ASTReader.cpp +++ b/clang/lib/Serialization/ASTReader.cpp @@ -1555,7 +1555,7 @@ void ASTReader::ReadMacroRecord(PerFileData &F, uint64_t Offset) { InclusionDirective::InclusionKind Kind = static_cast<InclusionDirective::InclusionKind>(Record[5]); InclusionDirective *ID - = new (PPRec) InclusionDirective(Kind, + = new (PPRec) InclusionDirective(PPRec, Kind, llvm::StringRef(BlobStart, Record[3]), Record[4], File, |

