mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Work around VS bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
96698a5ec7
commit
ed965e901c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user