mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix Regression/Assembler/2004-02-27-SelfUseAssertError.ll
llvm-svn: 11913
This commit is contained in:
parent
c866ad1f00
commit
644af802c9
@ -474,7 +474,8 @@ void Verifier::visitInstruction(Instruction &I) {
|
||||
if (!isa<PHINode>(I)) { // Check that non-phi nodes are not self referential
|
||||
for (Value::use_iterator UI = I.use_begin(), UE = I.use_end();
|
||||
UI != UE; ++UI)
|
||||
Assert1(*UI != (User*)&I,
|
||||
Assert1(*UI != (User*)&I ||
|
||||
!DS->dominates(&BB->getParent()->getEntryBlock(), BB),
|
||||
"Only PHI nodes may reference their own value!", &I);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user