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 | 4f8ced58a757ea884c50639bea8f7bab02ff2c3e (patch) | |
| tree | 737d5aefe52537adc25144bcffcf196ce2179d26 /llvm/lib/VMCore/Dominators.cpp | |
| parent | 01ba47d7b6c0dfabb9014e6d904b71e55f0428ed (diff) | |
| download | bcm5719-llvm-4f8ced58a757ea884c50639bea8f7bab02ff2c3e.tar.gz bcm5719-llvm-4f8ced58a757ea884c50639bea8f7bab02ff2c3e.zip | |
Def here is an Instruction, so !isa<Instruction>(Def) is always false,
as Eli noticed.
llvm-svn: 154641
Diffstat (limited to 'llvm/lib/VMCore/Dominators.cpp')
| -rw-r--r-- | llvm/lib/VMCore/Dominators.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/llvm/lib/VMCore/Dominators.cpp b/llvm/lib/VMCore/Dominators.cpp index b79688b31cd..219e6315cf4 100644 --- a/llvm/lib/VMCore/Dominators.cpp +++ b/llvm/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(); | 

