mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 06:06:52 +00:00
Fix PR670 and test/Regression/Transforms/Mem2Reg/2005-11-28-Crash.ll
llvm-svn: 24508
This commit is contained in:
parent
10bc24c5b2
commit
8154ba119b
@ -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…
x
Reference in New Issue
Block a user