mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +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:
@@ -404,13 +404,14 @@ public:
|
||||
if (BranchInst *BI = dyn_cast<BranchInst>(BackedgeBlock->getTerminator()))
|
||||
if (BI->isConditional()) {
|
||||
if (ICmpInst *ICI = dyn_cast<ICmpInst>(BI->getCondition())) {
|
||||
if (ICI->getOperand(0) == Inc)
|
||||
if (ICI->getOperand(0) == Inc) {
|
||||
if (BI->getSuccessor(0) == getHeader()) {
|
||||
if (ICI->getPredicate() == ICmpInst::ICMP_NE)
|
||||
return ICI->getOperand(1);
|
||||
} else if (ICI->getPredicate() == ICmpInst::ICMP_EQ) {
|
||||
return ICI->getOperand(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user