[llvm] [docs] Fix issues in SourceLevelDebugging (PR #73528)
Felipe de Azevedo Piovezan via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 27 07:28:12 PST 2023
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/73528
An SSA register `value` was being defined twice.
An "external" link was using the "internal" link syntax.
>From 9cd4b7b10ef2695f9b387c1c88328b2e981738c5 Mon Sep 17 00:00:00 2001
From: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
Date: Sat, 25 Nov 2023 21:34:22 -0800
Subject: [PATCH] [docs] Fix issues in SourceLevelDebugging
An SSA register `value` was being defined twice.
An "external" link was using the "internal" link syntax.
---
llvm/docs/SourceLevelDebugging.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/docs/SourceLevelDebugging.rst b/llvm/docs/SourceLevelDebugging.rst
index da3466a7f51c5fa..e1df7c355ee0921 100644
--- a/llvm/docs/SourceLevelDebugging.rst
+++ b/llvm/docs/SourceLevelDebugging.rst
@@ -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
@@ -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:
More information about the llvm-commits
mailing list