[ARM GlobalISel] Move the check for Thumb higher up
authorDiana Picus <diana.picus@linaro.org>
Fri, 3 Nov 2017 10:30:12 +0000 (10:30 +0000)
committerDiana Picus <diana.picus@linaro.org>
Fri, 3 Nov 2017 10:30:12 +0000 (10:30 +0000)
commitacf4bf21ab7aa9131bbd1d4a7331f8e0214974a8
tree7fed76c4e095e98a2326401a4c3bed3db15f420d
parent4b77f463d0838bc2bae34b05e2dab9e1d7387dae
[ARM GlobalISel] Move the check for Thumb higher up

We're currently bailing out for Thumb targets while lowering formal
parameters, but there used to be some other checks before it, which
could've caused some functions (e.g. those without formal parameters) to
sneak through unnoticed.

llvm-svn: 317312
llvm/lib/Target/ARM/ARMCallLowering.cpp