diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-08-20 06:00:58 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-08-20 06:00:58 +0000 |
commit | 0220904e7ad2936d0bd4fd659c9ee7508f38dacc (patch) | |
tree | 6549bfc9d4de9d031c5395fc71fa86e4198ebd45 /llvm/lib/VMCore/Verifier.cpp | |
parent | 2b4b4a577ad5ce9a8fe862a43e2009455d99304a (diff) | |
download | bcm5719-llvm-0220904e7ad2936d0bd4fd659c9ee7508f38dacc.tar.gz bcm5719-llvm-0220904e7ad2936d0bd4fd659c9ee7508f38dacc.zip |
Packed types, brought to you by Brad Jones
llvm-svn: 15938
Diffstat (limited to 'llvm/lib/VMCore/Verifier.cpp')
-rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 2005dbf5845..9e99fe0136c 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -488,8 +488,9 @@ void Verifier::visitBinaryOperator(BinaryOperator &B) { Assert1(B.getType() == B.getOperand(0)->getType(), "Arithmetic operators must have same type for operands and result!", &B); - Assert1(B.getType()->isInteger() || B.getType()->isFloatingPoint(), - "Arithmetic operators must have integer or fp type!", &B); + Assert1(B.getType()->isInteger() || B.getType()->isFloatingPoint() || + isa<PackedType>(B.getType()), + "Arithmetic operators must have integer, fp, or packed type!", &B); } visitInstruction(B); |