This patch fixes the warning of casting away qualifiers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/unittests/Transforms/IPO/AttributorTest.cpp | ||
---|---|---|
46–47 | I think this should be a C++ cast. |
Comment Actions
Why do you need the cast anyway:
const AbstractAttribute *AA = &A.getOrCreateAAFor<AAIsDead>(IRPosition::function(*F))
should do fine, does it not?
I think this should be a C++ cast.