summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-11-01 15:03:47 +0000
committerDouglas Gregor <dgregor@apple.com>2010-11-01 15:03:47 +0000
commitf09b6c9c85a7fd8b5b999c1ce4ae1766c2565e0b (patch)
treeecf70f92fb25327e2d0c399cfaf83e3081caf815 /clang/lib/Serialization
parent1614597873fa80a8d56d42ab20230ca260daa448 (diff)
downloadbcm5719-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.cpp2
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,
OpenPOWER on IntegriCloud