Fix GCC warnings

llvm-svn: 14044
This commit is contained in:
Chris Lattner 2004-06-05 17:43:52 +00:00
parent 1253fb9d83
commit 08d1b9db1e
1 changed files with 2 additions and 2 deletions

View File

@ -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);