aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/Dominators.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp
index b79688b..219e631 100644
--- a/lib/VMCore/Dominators.cpp
+++ b/lib/VMCore/Dominators.cpp
@@ -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();