From e1f8a1a8c31ccd05f719eb69e8838a7d56fca44f Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Tue, 11 Aug 2009 05:03:38 +0000 Subject: [PATCH] Fix a few more places in TableGen that need to handle EVT::vAny types. llvm-svn: 78643 --- utils/TableGen/CodeGenTarget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index 28ee33c1a35..9b639ecd8d7 100644 --- a/utils/TableGen/CodeGenTarget.cpp +++ b/utils/TableGen/CodeGenTarget.cpp @@ -493,7 +493,8 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) { // overloaded, all the types can be specified directly. assert(((!TyEl->isSubClassOf("LLVMExtendedElementVectorType") && !TyEl->isSubClassOf("LLVMTruncatedElementVectorType")) || - VT == EVT::iAny) && "Expected iAny type"); + VT == EVT::iAny || VT == EVT::vAny) && + "Expected iAny or vAny type"); } else { VT = getValueType(TyEl->getValueAsDef("VT")); } @@ -524,7 +525,8 @@ CodeGenIntrinsic::CodeGenIntrinsic(Record *R) { // overloaded, all the types can be specified directly. assert(((!TyEl->isSubClassOf("LLVMExtendedElementVectorType") && !TyEl->isSubClassOf("LLVMTruncatedElementVectorType")) || - VT == EVT::iAny) && "Expected iAny type"); + VT == EVT::iAny || VT == EVT::vAny) && + "Expected iAny or vAny type"); } else VT = getValueType(TyEl->getValueAsDef("VT")); if (EVT(VT).isOverloaded()) {