mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 22:26:14 +00:00
Fix PR670 and test/Regression/Transforms/Mem2Reg/2005-11-28-Crash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24508 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cae34910c9
commit
d87ef134d7
@ -311,6 +311,7 @@ public:
|
||||
///
|
||||
bool properlyDominates(const Node *N) const {
|
||||
const Node *IDom;
|
||||
if (this == 0 || N == 0) return false;
|
||||
while ((IDom = N->getIDom()) != 0 && IDom != this)
|
||||
N = IDom; // Walk up the tree
|
||||
return IDom != 0;
|
||||
|
Loading…
Reference in New Issue
Block a user