Skip to content

Commit

Permalink
[ARM] GlobalISel: Error out instead of asserting
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rovka committed Feb 2, 2017
1 parent d63d59a commit a2eb1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/ARM/ARMCallLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a2eb1ad

Please sign in to comment.