forked from OSchip/llvm-project
[ARM] GlobalISel: Error out instead of asserting
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). llvm-svn: 293888
This commit is contained in:
parent
7f4b26e189
commit
0c11c7b5c7
|
@ -33,7 +33,7 @@ ARMCallLowering::ARMCallLowering(const ARMTargetLowering &TLI)
|
|||
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue