1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Use isValidOperands() to verify GetResultInst.

llvm-svn: 47387
This commit is contained in:
Devang Patel 2008-02-20 18:36:46 +00:00
parent aae784581e
commit 019b5585e8

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