mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 01:38:26 +00:00
Apply patch for use-after-free in InlineAsm constant handling,
PR 8522 / 8616046. Test reduction, analysis and patch by Tim Deegan! (However, review by someone who understands the classes here better is welcome. John Krum will return!) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118030 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
28b108250d
commit
1aabe1b493
@ -47,6 +47,7 @@ InlineAsm::InlineAsm(const PointerType *Ty, const std::string &asmString,
|
||||
}
|
||||
|
||||
void InlineAsm::destroyConstant() {
|
||||
getRawType()->getContext().pImpl->InlineAsms.remove(this);
|
||||
delete this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user