[PATCH] D77168: Add a flag to debug automatic variable initialization

Jian Cai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 1 10:26:37 PDT 2020


jcai19 added a comment.

> For example, won't you need some way of figuring out what the 1,134th variable in a file was after you've successfully bisected?

Once we know the Xth variable is causing issues, we can compare the IR or assembly of -fvar-auto-init-stop-after=X-1 and -fvar-auto-init-stop-after=X to figure out which variable it is, or I can print out the variable name and the enclosing function if it is preferred.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77168





More information about the cfe-commits mailing list