[PATCH] D47097: [DebugInfo] Preserve scope in auto generated StoreInst

Anastasis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 24 09:38:11 PDT 2018

gramanas added a comment.

In https://reviews.llvm.org/D47097#1111149, @probinson wrote:

> Can we step back a second and better explain what the problem is? With current Clang the debug info for this function looks okay to me.
>  The store that is "missing" a debug location is homing the formal parameter to its local stack location; this is part of prolog setup, not "real" code.

Isn't this the reason the artificial debug loc exists? The store in the prolog might not be real code but it should still have the scope that the rest of the function has.

  rC Clang


More information about the cfe-commits mailing list