mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
Def here is an Instruction, so !isa<Instruction>(Def) is always false,
as Eli noticed. llvm-svn: 154641
This commit is contained in:
parent
c0a906405e
commit
cde3a46455
@ -189,10 +189,9 @@ bool DominatorTree::dominates(const Instruction *Def,
|
||||
const Use &U) const {
|
||||
Instruction *UserInst = dyn_cast<Instruction>(U.getUser());
|
||||
|
||||
// All non-instructions conceptually dominate everything. Instructions do
|
||||
// not dominate non-instructions.
|
||||
// Instructions do not dominate non-instructions.
|
||||
if (!UserInst)
|
||||
return !isa<Instruction>(Def);
|
||||
return false;
|
||||
|
||||
const BasicBlock *DefBB = Def->getParent();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user