[cfe-dev] static Matcher generate Use After Free

Aleksandr via cfe-dev cfe-dev at lists.llvm.org
Tue Jun 6 02:15:37 PDT 2017


Hello,

I need help. I see, that using static Matcher generate error on 
deallocated itself. For example, if we use:
static StatementMatcher MatcherA = callExpr();
MatcherA on dealloc tyrying to release reference counter of itself, but 
reference counter was deleted by method llvm_shutdown, so it use free 
memory.
Is it ok? We shouldn't use static matchers, or we have bug in 
implementation in reference counter. What is it case?



More information about the cfe-dev mailing list