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:
parent
aae784581e
commit
019b5585e8
@ -1039,7 +1039,8 @@ void Verifier::visitAllocationInst(AllocationInst &AI) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Verifier::visitGetResultInst(GetResultInst &GRI) {
|
void Verifier::visitGetResultInst(GetResultInst &GRI) {
|
||||||
// FIXME : Check operands.
|
assert (GRI.isValidOperands(GRI.getAggregateValue(), GRI.getIndex())
|
||||||
|
&& "Invalid GetResultInst operands!");
|
||||||
visitInstruction(GRI);
|
visitInstruction(GRI);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user