forked from OSchip/llvm-project
Verifier should use Assert1 instead of assert.
llvm-svn: 47394
This commit is contained in:
parent
2c61d2c503
commit
6b30fd310d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue