mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Fix undefined behavior (binding a reference to a dereferenced null pointer) if
SSAUpdater was created and destroyed without being initialized. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3028d38f6e
commit
1cec7a05ee
@ -39,7 +39,7 @@ SSAUpdater::SSAUpdater(SmallVectorImpl<PHINode*> *NewPHI)
|
|||||||
: AV(0), ProtoType(0), ProtoName(), InsertedPHIs(NewPHI) {}
|
: AV(0), ProtoType(0), ProtoName(), InsertedPHIs(NewPHI) {}
|
||||||
|
|
||||||
SSAUpdater::~SSAUpdater() {
|
SSAUpdater::~SSAUpdater() {
|
||||||
delete &getAvailableVals(AV);
|
delete static_cast<AvailableValsTy*>(AV);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Initialize - Reset this object to get ready for a new set of SSA
|
/// Initialize - Reset this object to get ready for a new set of SSA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user