[llvm] r293888 - [ARM] GlobalISel: Error out instead of asserting
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 2 06:00:55 PST 2017
Author: rovka
Date: Thu Feb 2 08:00:54 2017
New Revision: 293888
URL: http://llvm.org/viewvc/llvm-project?rev=293888&view=rev
Log:
[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).
Modified:
llvm/trunk/lib/Target/ARM/ARMCallLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMCallLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMCallLowering.cpp?rev=293888&r1=293887&r2=293888&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMCallLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMCallLowering.cpp Thu Feb 2 08:00:54 2017
@@ -33,7 +33,7 @@ ARMCallLowering::ARMCallLowering(const A
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;
More information about the llvm-commits
mailing list