Début info

Hi.

We recently switched from 3.5 to 3.7 and it seems that some instructions don’t have any related DebugInfo.
Typically the getelementptr instructions which are inlined when accessing global structs.

I’d like to know if this is expected. If yes, what debug info should I associate? The one from previous instruction? Maybe the next? Maybe the parent block?

Many thanks

Regis Portalez

Hi.

We recently switched from 3.5 to 3.7 and it seems that some instructions don't have any related DebugInfo.
Typically the getelementptr instructions which are inlined when accessing global structs.

I'd like to know if this is expected. If yes, what debug info should I associate? The one from previous instruction? Maybe the next? Maybe the parent block?

Are you talking about IR that is generated by clang or by a different frontend? The general expectations is that all instructions have debug info attached to them, since no debug information is a special cue to the backend to mark the function prologue.

-- adrian