Add an assertion
Check whether a block is a direct predecessor. llvm-svn: 244401
This commit is contained in:
parent
0270a08ebf
commit
9bb8ef03a2
@ -514,6 +514,7 @@ void BlockGenerator::generateScalarStores(ScopStmt &Stmt, BasicBlock *BB,
|
||||
if (MA->getScopArrayInfo()->isPHI()) {
|
||||
PHINode *BasePHI = dyn_cast<PHINode>(Base);
|
||||
int PHIIdx = BasePHI->getBasicBlockIndex(BB);
|
||||
assert(PHIIdx >= 0);
|
||||
Address = getOrCreateAlloca(Base, PHIOpMap, ".phiops");
|
||||
Val = BasePHI->getIncomingValue(PHIIdx);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user