diff options
author | Dan Gohman <gohman@apple.com> | 2012-04-13 00:50:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2012-04-13 00:50:57 +0000 |
commit | 0120f7913fc7eee98ac16052e02466c1c50abd9b (patch) | |
tree | 57ac397860ebfa7629c53102eeace3d3c12eeea4 /lib/VMCore/Dominators.cpp | |
parent | 558ece284cef9d42a96577f3943cb3efee8904e0 (diff) | |
download | external_llvm-0120f7913fc7eee98ac16052e02466c1c50abd9b.zip external_llvm-0120f7913fc7eee98ac16052e02466c1c50abd9b.tar.gz external_llvm-0120f7913fc7eee98ac16052e02466c1c50abd9b.tar.bz2 |
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
Diffstat (limited to 'lib/VMCore/Dominators.cpp')
-rw-r--r-- | lib/VMCore/Dominators.cpp | 5 |
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(); |