From: Devang Patel Date: Wed, 20 Feb 2008 18:36:46 +0000 (+0000) Subject: Use isValidOperands() to verify GetResultInst. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=85eab709cad923740aaae0dc22a3b12b2cd782d3;p=oota-llvm.git Use isValidOperands() to verify GetResultInst. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47387 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index a96f39c2c23..5cdc4da858b 100644 --- a/lib/VMCore/Verifier.cpp +++ b/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); }