[PATCH] D121365: [CFG] Fix crash on CFG building when deriving from a template.

Clement Courbet via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 16 02:50:41 PDT 2022


courbet added a comment.

Thanks !

In D121365#3720171 <https://reviews.llvm.org/D121365#3720171>, @NoQ wrote:

> Hi, interesting, the code looks great but at a glance I don't see why would you even want a CFG for an uninstantiated template. Every time you want to analyze the actual runtime behavior of a program, you'll have a fully instantiated template AST to build the CFG from.

I'm hitting this for an analysis that is eagerly analyzing templates before instantiation, and does not require the base classes. It's always better to not crash anyway :)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121365



More information about the cfe-commits mailing list