[PATCH] D84532: [Attributor] Fix qualifier warning of the unittest

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 26 14:18:47 PDT 2020


jdoerfert added a comment.

Why do you need the `cast` anyway:

`const AbstractAttribute *AA = &A.getOrCreateAAFor<AAIsDead>(IRPosition::function(*F))`

should do fine, does it not?


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

https://reviews.llvm.org/D84532





More information about the llvm-commits mailing list