Verifier should use Assert1 instead of assert.

llvm-svn: 47394
This commit is contained in:
Devang Patel 2008-02-20 19:32:20 +00:00
parent 2c61d2c503
commit 6b30fd310d
1 changed files with 2 additions and 2 deletions

View File

@ -1039,8 +1039,8 @@ void Verifier::visitAllocationInst(AllocationInst &AI) {
}
void Verifier::visitGetResultInst(GetResultInst &GRI) {
assert (GRI.isValidOperands(GRI.getAggregateValue(), GRI.getIndex())
&& "Invalid GetResultInst operands!");
Assert1(GRI.isValidOperands(GRI.getAggregateValue(), GRI.getIndex()),
"Invalid GetResultInst operands!", &GRI);
visitInstruction(GRI);
}