Allow unknown types in TLI.getValueType, otherwise we get asserts for certain
types that we do not support yet (instead of returning that we don't support
them and falling through the normal error path).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293888
91177308-0d34-0410-b5e6-
96231b3b80d8
static bool isSupportedType(const DataLayout &DL, const ARMTargetLowering &TLI,
Type *T) {
- EVT VT = TLI.getValueType(DL, T);
+ EVT VT = TLI.getValueType(DL, T, true);
if (!VT.isSimple() || !VT.isInteger() || VT.isVector())
return false;