Commit Graph

2 Commits

Author SHA1 Message Date
Daniil Suchkov 7c3e2b92cf [RewriteStatepointsForGC] Fix an incorrect assertion
The assertion verifying that a newly computed value matches what is
already cached used stripPointerCasts() to strip bitcasts, however the
values can be not only pointers, but also vectors of pointers. That is
problematic because stripPointerCasts() doesn't handle vectors of
pointers. This patch introduces an ad-hoc utility function to strip all
bitcasts regardless of the value type.

Reviewed By: skatkov, reames

Differential Revision: https://reviews.llvm.org/D119994
2022-02-17 18:44:57 +00:00
Daniil Suchkov a99989529e [RewriteStatepointsForGC] Add a test exposing an incorrect assertion 2022-02-17 00:22:46 +00:00