diff options
author | Devang Patel <dpatel@apple.com> | 2008-02-20 18:36:46 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-02-20 18:36:46 +0000 |
commit | 85eab709cad923740aaae0dc22a3b12b2cd782d3 (patch) | |
tree | e187b44b7887ff88727e0fd69a00e390c15f44bb | |
parent | 2d2ae34d7e2cdbaa8bb2ef4da0e58c91c9e36f85 (diff) |
Use isValidOperands() to verify GetResultInst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47387 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Verifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index a96f39c2c2..5cdc4da858 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); } |