mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[Dominators] Simplify a member function. NFCI.
llvm-svn: 299789
This commit is contained in:
parent
bf33dc6ed7
commit
dda7a687db
@ -129,14 +129,8 @@ public:
|
||||
inline bool compare(const DominatorTree &Other) const {
|
||||
const DomTreeNode *R = getRootNode();
|
||||
const DomTreeNode *OtherR = Other.getRootNode();
|
||||
|
||||
if (!R || !OtherR || R->getBlock() != OtherR->getBlock())
|
||||
return true;
|
||||
|
||||
if (Base::compare(Other))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return !R || !OtherR || R->getBlock() != OtherR->getBlock() ||
|
||||
Base::compare(Other);
|
||||
}
|
||||
|
||||
// Ensure base-class overloads are visible.
|
||||
|
Loading…
Reference in New Issue
Block a user