[AArch64] Fix unintended fallthrough and strengthen cast
authorReid Kleckner <rnk@google.com>
Thu, 1 Nov 2018 18:02:27 +0000 (18:02 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 1 Nov 2018 18:02:27 +0000 (18:02 +0000)
commiteb56894a4befd0cf6c182af2a8542fe00f73c52c
tree451e03359b0bf54dc8e9a50007124ae220f409fb
parentb0cdf56dd72b2d03e203a0c328618a7da15ebf5b
[AArch64] Fix unintended fallthrough and strengthen cast

This was added in r330630. GCC's -Wimplicit-fallthrough seems to not
fire when the previous case contains a switch itself.

This fallthrough was bening because the helper function implementing the
case used dyn_cast to re-check the type of the node in question. After
fixing the fallthrough, we can strengthen the cast.

llvm-svn: 345864
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp