mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01: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!) llvm-svn: 118030
This commit is contained in:
parent
5fe61a5f86
commit
b758b5a1a3
@ -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…
Reference in New Issue
Block a user