summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenTarget.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-08-11 05:03:38 +0000
committerBob Wilson <bob.wilson@apple.com>2009-08-11 05:03:38 +0000
commit781797f58652b2306ea72287a5f5ced5cda71a50 (patch)
tree7401f37fe05644727bb84571ed44b98e95fca2ed /llvm/utils/TableGen/CodeGenTarget.cpp
parent71527c14930f4244b8c1d8df73c7d285ce53640b (diff)
downloadbcm5719-llvm-781797f58652b2306ea72287a5f5ced5cda71a50.tar.gz
bcm5719-llvm-781797f58652b2306ea72287a5f5ced5cda71a50.zip
Fix a few more places in TableGen that need to handle EVT::vAny types.
llvm-svn: 78643
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenTarget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp
index 28ee33c1a35..9b639ecd8d7 100644
--- a/llvm/utils/TableGen/CodeGenTarget.cpp
+++ b/llvm/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()) {
OpenPOWER on IntegriCloud