summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-05 17:44:48 +0000
committerChris Lattner <sabre@nondot.org>2004-06-05 17:44:48 +0000
commitc70a5092bf6e06164114b2ecf562193538afe898 (patch)
tree871a89d947f0db67c36c4e5402e80e034a891edc
parent9bf2a926cbdf05c5b412ec35e72908a08a4cf34b (diff)
downloadexternal_llvm-c70a5092bf6e06164114b2ecf562193538afe898.zip
external_llvm-c70a5092bf6e06164114b2ecf562193538afe898.tar.gz
external_llvm-c70a5092bf6e06164114b2ecf562193538afe898.tar.bz2
Fix GCC warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14045 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp
index d27bd88..3bfa5b4 100644
--- a/lib/VMCore/Verifier.cpp
+++ b/lib/VMCore/Verifier.cpp
@@ -319,7 +319,7 @@ void Verifier::visitBasicBlock(BasicBlock &BB) {
std::vector<BasicBlock*> Preds(pred_begin(&BB), pred_end(&BB));
std::sort(Preds.begin(), Preds.end());
PHINode *PN;
- for (BasicBlock::iterator I = BB.begin(); PN = dyn_cast<PHINode>(I); ++I) {
+ for (BasicBlock::iterator I = BB.begin(); (PN = dyn_cast<PHINode>(I));++I) {
// Ensure that PHI nodes have at least one entry!
Assert1(PN->getNumIncomingValues() != 0,