[GlobalISel][CallLowering] Use stripPointerCasts().
authorAmara Emerson <aemerson@apple.com>
Mon, 10 Feb 2020 23:41:53 +0000 (15:41 -0800)
committerAmara Emerson <aemerson@apple.com>
Mon, 10 Feb 2020 23:43:57 +0000 (15:43 -0800)
commit067dd9c6b12adb3ace20b46203cff9031c7dd6a4
tree59eb871b9765161d6cbadf664645dd6ff93e3e05
parentb7bd35a8f13fd332fc7d32c0f03b13ef9e2fb2c1
[GlobalISel][CallLowering] Use stripPointerCasts().

A downstream test exposed a simple logic bug with the manual pointer
stripping code, fix that by just using stripPointerCasts() on the value.

I don't think there's a way to expose this issue upstream.
llvm/lib/CodeGen/GlobalISel/CallLowering.cpp