forked from OSchip/llvm-project
Use isValidOperands() to verify GetResultInst.
llvm-svn: 47387
This commit is contained in:
parent
490760380c
commit
3ef1b793c1
|
@ -1039,7 +1039,8 @@ void Verifier::visitAllocationInst(AllocationInst &AI) {
|
|||
}
|
||||
|
||||
void Verifier::visitGetResultInst(GetResultInst &GRI) {
|
||||
// FIXME : Check operands.
|
||||
assert (GRI.isValidOperands(GRI.getAggregateValue(), GRI.getIndex())
|
||||
&& "Invalid GetResultInst operands!");
|
||||
visitInstruction(GRI);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue