melver added a comment.

In D92846#2440118 <https://reviews.llvm.org/D92846#2440118>, @dvyukov wrote:

> Have you checked if there is already a function that does this? Frequently 
> there is :)
> Some functions that look similar based on names:
> stripPointerCasts
> stripPointerCastsAndOffsets
> stripPointerCastsAndAliases
> canonicalizeAlias

Yup, stripPointerCastsAndAliases() works.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92846/new/

https://reviews.llvm.org/D92846

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to