Skip to content

Commit eae1811

Browse files
[docs] Fix issues in SourceLevelDebugging (#73528)
An SSA register `value` was being defined twice. An "external" link was using the "internal" link syntax.
1 parent fea023b commit eae1811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/docs/SourceLevelDebugging.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ And has the following operands:
641641
operand of the ``DBG_VALUE`` instruction above. These variable location
642642
operands are inserted into the final DWARF Expression in positions indicated
643643
by the DW_OP_LLVM_arg operator in the `DIExpression
644-
<LangRef.html#diexpression>`.
644+
<LangRef.html#diexpression>`_.
645645

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

0 commit comments

Comments
 (0)