mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
Fix GCC warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bdbcb8a260
commit
9bf2a926cb
@ -182,7 +182,7 @@ void BasicBlock::removePredecessor(BasicBlock *Pred) {
|
||||
// Okay, now we know that we need to remove predecessor #pred_idx from all
|
||||
// PHI nodes. Iterate over each PHI node fixing them up
|
||||
PHINode *PN;
|
||||
for (iterator II = begin(); PN = dyn_cast<PHINode>(II); ++II)
|
||||
for (iterator II = begin(); (PN = dyn_cast<PHINode>(II)); ++II)
|
||||
PN->removeIncomingValue(Pred);
|
||||
}
|
||||
}
|
||||
@ -224,7 +224,7 @@ BasicBlock *BasicBlock::splitBasicBlock(iterator I, const std::string &BBName) {
|
||||
BasicBlock *Successor = *I;
|
||||
PHINode *PN;
|
||||
for (BasicBlock::iterator II = Successor->begin();
|
||||
PN = dyn_cast<PHINode>(II); ++II) {
|
||||
(PN = dyn_cast<PHINode>(II)); ++II) {
|
||||
int IDX = PN->getBasicBlockIndex(this);
|
||||
while (IDX != -1) {
|
||||
PN->setIncomingBlock((unsigned)IDX, New);
|
||||
|
Loading…
x
Reference in New Issue
Block a user