From d635695cf80b3c4d2f5439d082fafcaa4f2a3fef Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Mon, 12 Sep 2022 12:43:17 +0100 Subject: [PATCH] [DebugInfo][Docs] Fix RST syntax for DW_OP_LLVM_arg in LangRef The inline code in the description of `DW_OP_LLVM_arg` wasn't terminating correctly, leading to more text displayed as code than intended. This fixes that up and adds a superscript as a tiny embellishment. --- llvm/docs/LangRef.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 1c89878e37f8..73ab0ef1f3a6 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -5813,7 +5813,7 @@ The current supported opcode vocabulary is limited: - ``DW_OP_LLVM_arg, N`` is used in debug intrinsics that refer to more than one value, such as one that calculates the sum of two registers. This is always used in combination with an ordered list of values, such that - ``DW_OP_LLVM_arg, N`` refers to the ``N``th element in that list. For + ``DW_OP_LLVM_arg, N`` refers to the ``N``\ :sup:`th` element in that list. For example, ``!DIExpression(DW_OP_LLVM_arg, 0, DW_OP_LLVM_arg, 1, DW_OP_minus, DW_OP_stack_value)`` used with the list ``(%reg1, %reg2)`` would evaluate to ``%reg1 - reg2``. This list of values should be provided by the containing