NoQ added a comment.

Uh-oh, it's annoying indeed that you can't easily obtain the current CFG 
element from inside a `CallEvent`.

Given that every `CallEvent` is in fact associated with a `CFGElement` (but not 
every `CallEvent` is associated with an `Expr` or have a `Decl`), can we modify 
the `CallEvent` structure to store a `CFGElementRef` //instead// of 
`llvm::PointerUnion<const Expr *, const Decl *> Origin;`? That might be some 
work but it should increase our sanity by a lot.


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

https://reviews.llvm.org/D77229



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to