1
0
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:
Chris Lattner 2004-02-27 17:28:25 +00:00
parent c866ad1f00
commit 644af802c9

View File

@ -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);
}