[cfe-dev] ASTVisitor: Lifetime of CXXRecordDecl

Marcel Schaible via cfe-dev cfe-dev at lists.llvm.org
Sun Jan 10 09:24:47 PST 2021


Hi,

first of all Happy New Year to everyone!

I have a strange SEGV in my tool.

I store inside a

ASTVisitor::VisitCXXRecordDecl(CXXRecordDecl*Declaration)

the Declaration in a std::vector for later processing.

After traversing the AST the Declaration pointer in the vector seems to 
be invalid.

Any idea?


Thanks

Marcel


More information about the cfe-dev mailing list