From a2eb1ad2cd2467f4c754c6ca3369eeadfb92eebd Mon Sep 17 00:00:00 2001 From: Diana Picus Date: Thu, 2 Feb 2017 14:00:54 +0000 Subject: [PATCH] [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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293888 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMCallLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMCallLowering.cpp b/lib/Target/ARM/ARMCallLowering.cpp index 5a2ded2e4b7..c5b49ef70fd 100644 --- a/lib/Target/ARM/ARMCallLowering.cpp +++ b/lib/Target/ARM/ARMCallLowering.cpp @@ -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; -- 2.50.1