mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-03 00:06:46 +00:00
Def here is an Instruction, so !isa<Instruction>(Def) is always false,
as Eli noticed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
558ece284c
commit
0120f7913f
@ -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…
x
Reference in New Issue
Block a user