diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-05 00:22:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-05 00:22:04 +0000 |
commit | ed965e901c7bb4621ac841b4e7ace0b5d1210141 (patch) | |
tree | 6ecc73354c7d5b4764fa8b9b7a2140d7ca58d95a | |
parent | 96698a5ec78619ac79443039f9dbc1db141a7e82 (diff) | |
download | external_llvm-ed965e901c7bb4621ac841b4e7ace0b5d1210141.zip external_llvm-ed965e901c7bb4621ac841b4e7ace0b5d1210141.tar.gz external_llvm-ed965e901c7bb4621ac841b4e7ace0b5d1210141.tar.bz2 |
Work around VS bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14036 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Verifier.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 2e92c26..d27bd88 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -318,9 +318,8 @@ void Verifier::visitBasicBlock(BasicBlock &BB) { if (isa<PHINode>(BB.front())) { std::vector<BasicBlock*> Preds(pred_begin(&BB), pred_end(&BB)); std::sort(Preds.begin(), Preds.end()); - - for (BasicBlock::iterator I = BB.begin(); - PHINode *PN = dyn_cast<PHINode>(I); ++I) { + PHINode *PN; + 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, |