mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Move more code back to 2.5 APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77635 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -243,7 +243,7 @@ Value *LCSSA::GetValueForBlock(DomTreeNode *BB, Instruction *OrigInst,
|
||||
DenseMap<DomTreeNode*, Value*> &Phis) {
|
||||
// If there is no dominator info for this BB, it is unreachable.
|
||||
if (BB == 0)
|
||||
return OrigInst->getContext().getUndef(OrigInst->getType());
|
||||
return UndefValue::get(OrigInst->getType());
|
||||
|
||||
// If we have already computed this value, return the previously computed val.
|
||||
if (Phis.count(BB)) return Phis[BB];
|
||||
|
Reference in New Issue
Block a user