diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index a96f39c2c237..5cdc4da858b8 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -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); }