mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
don't read Block after it is freed. This fixes PR1684
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42204 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f7a4e2a828
commit
c369bd7c50
@ -1301,7 +1301,9 @@ public:
|
||||
ValuesSet.InsertNode(Value, Where);
|
||||
Values.push_back(Value);
|
||||
} else {
|
||||
// Already exists, reuse the previous one.
|
||||
delete Block;
|
||||
Block = cast<DIEBlock>(Value);
|
||||
}
|
||||
|
||||
Die->AddValue(Attribute, Block->BestForm(), Value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user