[PATCH] D111109: AddGlobalAnnotations for function with or without function body.
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 20 14:19:22 PDT 2021
alexfh added a comment.
Reduced test case:
template <class a> void b(a);
template <typename c> class d {
public:
class e {
public:
c *f();
};
e *g();
};
template <class> class j;
template <class h, class... i> class j<h(i...)> {
public:
class k {
public:
k(int *);
~k();
};
int n();
d<int *> l;
};
template <class h, class... i> int j<h(i...)>::n() {
auto m = l.g()->f();
k a(*m);
b(a);
}
template <class h, class... i>
j<h(i...)>::k::~k() __attribute__((annotate(""))) {}
class o {
int m_fn4();
j<int()> p;
};
int o::m_fn4() { p.n(); }
Please revert the commit if there is no quick and obvious solution. Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111109/new/
https://reviews.llvm.org/D111109
More information about the cfe-commits
mailing list