Use isValidOperands() to verify GetResultInst.

llvm-svn: 47387
This commit is contained in:
Devang Patel 2008-02-20 18:36:46 +00:00
parent 490760380c
commit 3ef1b793c1
1 changed files with 2 additions and 1 deletions

View File

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