diff options
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; } |