Verifier should use Assert1 instead of assert.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47394 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2008-02-20 19:32:20 +00:00
parent c9525263f6
commit 9fcde0fa13

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