mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-29 07:31:30 +00:00
Make the AttrListPtr object a part of the LLVMContext.
When code deletes the context, the AttributeImpls that the AttrListPtr points to are now invalid. Therefore, instead of keeping a separate managed static for the AttrListPtrs that's reference counted, move it into the LLVMContext and delete it when deleting the AttributeImpls. llvm-svn: 168354
This commit is contained in:
1 parent
9c1a86b29c
commit
f86efb9b98
12 files changed
+103
-125
No files matched your search
@@ -487,7 +487,7 @@ bool BitcodeReader::ParseAttributeBlock() {
|
||||
Attributes::get(Context, B)));
|
||||
}
|
||||
|
||||
MAttributes.push_back(AttrListPtr::get(Attrs));
|
||||
MAttributes.push_back(AttrListPtr::get(Context, Attrs));
|
||||
Attrs.clear();
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user