diff --git a/llvm/include/llvm/Analysis/Dominators.h b/llvm/include/llvm/Analysis/Dominators.h index 1d7e2f351c7b..45eed7fcdaf1 100644 --- a/llvm/include/llvm/Analysis/Dominators.h +++ b/llvm/include/llvm/Analysis/Dominators.h @@ -323,16 +323,15 @@ public: /// Return the immediate dominator of A. BasicBlock *getIDom(BasicBlock *A) const { - if (!A) return 0; - ETNode *NodeA = getNode(A); + if (!NodeA) return 0; const ETNode *idom = NodeA->getFather(); return idom ? idom->getData() : 0; } void getChildren(BasicBlock *A, std::vector& children) const { - if (!A) return; ETNode *NodeA = getNode(A); + if (!NodeA) return; const ETNode* son = NodeA->getSon(); if (!son) return;