From 9bf2a926cbdf05c5b412ec35e72908a08a4cf34b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 5 Jun 2004 17:43:52 +0000 Subject: [PATCH] Fix GCC warnings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14044 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/BasicBlock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index d018cd292f6..587abf60aa3 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -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(II); ++II) + for (iterator II = begin(); (PN = dyn_cast(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(II); ++II) { + (PN = dyn_cast(II)); ++II) { int IDX = PN->getBasicBlockIndex(this); while (IDX != -1) { PN->setIncomingBlock((unsigned)IDX, New); -- 2.34.1