diff options
author | Dan Gohman <gohman@apple.com> | 2008-11-04 16:03:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-11-04 16:03:56 +0000 |
commit | 38bb2f8d094a7e98d07b258ec5b722b07ad45dcb (patch) | |
tree | 4fd268fffcfad3eecd8a828ab60285f586955a29 /utils | |
parent | aa386d08811d6e4839ca35c6bfe0787029606141 (diff) |
Add some asserts to verify MVT invariant assumptions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/TGValueTypes.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/TableGen/TGValueTypes.cpp b/utils/TableGen/TGValueTypes.cpp index 209e7c92c5..9e62322a63 100644 --- a/utils/TableGen/TGValueTypes.cpp +++ b/utils/TableGen/TGValueTypes.cpp @@ -69,6 +69,7 @@ MVT MVT::getExtendedIntegerVT(unsigned BitWidth) { if (!ET) ET = new ExtendedIntegerType(BitWidth); MVT VT; VT.LLVMTy = ET; + assert(VT.isExtended() && "Type is not extended!"); return VT; } @@ -78,6 +79,7 @@ MVT MVT::getExtendedVectorVT(MVT VT, unsigned NumElements) { if (!ET) ET = new ExtendedVectorType(VT, NumElements); MVT ResultVT; ResultVT.LLVMTy = ET; + assert(ResultVT.isExtended() && "Type is not extended!"); return ResultVT; } |