mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2145,13 +2145,14 @@ static PHINode *getConstantEvolvingPHI(Value *V, const Loop *L) {
|
||||
Instruction *I = dyn_cast<Instruction>(V);
|
||||
if (I == 0 || !L->contains(I->getParent())) return 0;
|
||||
|
||||
if (PHINode *PN = dyn_cast<PHINode>(I))
|
||||
if (PHINode *PN = dyn_cast<PHINode>(I)) {
|
||||
if (L->getHeader() == I->getParent())
|
||||
return PN;
|
||||
else
|
||||
// We don't currently keep track of the control flow needed to evaluate
|
||||
// PHIs, so we cannot handle PHIs inside of loops.
|
||||
return 0;
|
||||
}
|
||||
|
||||
// If we won't be able to constant fold this expression even if the operands
|
||||
// are constants, return early.
|
||||
|
Reference in New Issue
Block a user