From ab081c7195ad0b2bc9a13fa718f2bbffe54ac61c Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Thu, 9 Aug 2007 17:27:48 +0000 Subject: Update per review comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40965 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetLowering.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 6295939..e44f741 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -333,8 +333,8 @@ public: /// for it. LegalizeAction getConvertAction(MVT::ValueType FromVT, MVT::ValueType ToVT) const { - if (MVT::isExtendedVT(ToVT) || MVT::isExtendedVT(FromVT)) - return Expand; + assert(FromVT < MVT::LAST_VALUETYPE && ToVT < 32 && + "Table isn't big enough!"); return (LegalizeAction)((ConvertActions[FromVT] >> (2*ToVT)) & 3); } -- cgit v1.1