[llvm] r331841 - [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Thu May 10 12:46:30 PDT 2018


On Tue, May 8, 2018 at 7:40 PM, Shiva Chen via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: shiva
> Date: Tue May  8 19:40:45 2018
> New Revision: 331841
>
> URL: http://llvm.org/viewvc/llvm-project?rev=331841&view=rev
> Log:
> [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label.
>

Hi Shiva,
this commit caused https://bugs.llvm.org/show_bug.cgi?id=37395.

The issue here is in insertDebugValuesForPHIs().
A `DbgLabelInst` is-a `DbgInfoIntrinsic` but getVariableLocation()
hasn't been overridden for the class, so we end up crashing.
What do you think we should assign as variable location to
DbgLabelInst (if, we should)?

Thanks,

--
Davide


More information about the llvm-commits mailing list