Skip to content

Commit

Permalink
[docs] Fix issues in SourceLevelDebugging (#73528)
Browse files Browse the repository at this point in the history
An SSA register `value` was being defined twice.
An "external" link was using the "internal" link syntax.
  • Loading branch information
felipepiovezan committed Nov 27, 2023
1 parent fea023b commit eae1811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/docs/SourceLevelDebugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ And has the following operands:
operand of the ``DBG_VALUE`` instruction above. These variable location
operands are inserted into the final DWARF Expression in positions indicated
by the DW_OP_LLVM_arg operator in the `DIExpression
<LangRef.html#diexpression>`.
<LangRef.html#diexpression>`_.

The position at which the DBG_VALUEs are inserted should correspond to the
positions of their matching ``llvm.dbg.value`` intrinsics in the IR block. As
Expand Down Expand Up @@ -841,7 +841,7 @@ presents several difficulties:
falsebr:
call void @llvm.dbg.value(metadata i32 %input, metadata !30, metadata !DIExpression()), !dbg !24
call void @llvm.dbg.value(metadata i32 2, metadata !23, metadata !DIExpression()), !dbg !24
%value = add i32 %input, 2
%value2 = add i32 %input, 2
br label %bb1
exit:
Expand Down

0 comments on commit eae1811

Please sign in to comment.