Fix a GCC warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jay Foad 2011-07-20 08:15:21 +00:00
parent 34ad6db8b9
commit 626f52d43d

View File

@ -240,8 +240,8 @@ static Instruction *getInsertPointForUses(Instruction *User, Value *Def,
InsertPt = InsertBB->getTerminator();
}
assert(InsertPt && "Missing phi operand");
assert(!isa<Instruction>(Def) ||
DT->dominates(cast<Instruction>(Def), InsertPt) &&
assert((!isa<Instruction>(Def) ||
DT->dominates(cast<Instruction>(Def), InsertPt)) &&
"def does not dominate all uses");
return InsertPt;
}