diff options
author | Dale Johannesen <dalej@apple.com> | 2007-08-09 17:27:48 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-08-09 17:27:48 +0000 |
commit | ab081c7195ad0b2bc9a13fa718f2bbffe54ac61c (patch) | |
tree | e6340d424b14516adea23ae93bb5329e13807d27 /include/llvm/Target/TargetLowering.h | |
parent | 9528f11481e6840a10442733f1dc45c04b79d596 (diff) | |
download | external_llvm-ab081c7195ad0b2bc9a13fa718f2bbffe54ac61c.zip external_llvm-ab081c7195ad0b2bc9a13fa718f2bbffe54ac61c.tar.gz external_llvm-ab081c7195ad0b2bc9a13fa718f2bbffe54ac61c.tar.bz2 |
Update per review comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLowering.h')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |