mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Make sure the leakdetector is told about temporary Phi nodes also, so it doesn't
erroneously report them as leaks git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a175ed4194
commit
823c4abb58
@ -173,7 +173,12 @@ InstructionSelection::InsertCodeForPhis(Function &F)
|
||||
PHINode *PN = dyn_cast<PHINode>(&*IIt); ++IIt) {
|
||||
// FIXME: This is probably wrong...
|
||||
Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:");
|
||||
|
||||
|
||||
// The leak detector shouldn't track these nodes. They are not garbage,
|
||||
// even though their parent field is never filled in.
|
||||
//
|
||||
LeakDetector::removeGarbageObject(PhiCpRes);
|
||||
|
||||
// for each incoming value of the phi, insert phi elimination
|
||||
//
|
||||
for (unsigned i = 0; i < PN->getNumIncomingValues(); ++i) {
|
||||
|
@ -173,7 +173,12 @@ InstructionSelection::InsertCodeForPhis(Function &F)
|
||||
PHINode *PN = dyn_cast<PHINode>(&*IIt); ++IIt) {
|
||||
// FIXME: This is probably wrong...
|
||||
Value *PhiCpRes = new PHINode(PN->getType(), "PhiCp:");
|
||||
|
||||
|
||||
// The leak detector shouldn't track these nodes. They are not garbage,
|
||||
// even though their parent field is never filled in.
|
||||
//
|
||||
LeakDetector::removeGarbageObject(PhiCpRes);
|
||||
|
||||
// for each incoming value of the phi, insert phi elimination
|
||||
//
|
||||
for (unsigned i = 0; i < PN->getNumIncomingValues(); ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user