mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 21:45:16 +00:00
Fix undefined behavior (binding a reference to a dereferenced null pointer) if
SSAUpdater was created and destroyed without being initialized. llvm-svn: 162137
This commit is contained in:
parent
ab6dca06f4
commit
aa91b43d1c
@ -39,7 +39,7 @@ SSAUpdater::SSAUpdater(SmallVectorImpl<PHINode*> *NewPHI)
|
||||
: AV(0), ProtoType(0), ProtoName(), InsertedPHIs(NewPHI) {}
|
||||
|
||||
SSAUpdater::~SSAUpdater() {
|
||||
delete &getAvailableVals(AV);
|
||||
delete static_cast<AvailableValsTy*>(AV);
|
||||
}
|
||||
|
||||
/// Initialize - Reset this object to get ready for a new set of SSA
|
||||
|
Loading…
Reference in New Issue
Block a user