From 0b85ea85334daa050da01083543a02b4cfc4cc00 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 1 May 2020 19:25:08 +0100 Subject: [PATCH] [docs][FileCheck] Fix invalid example Summary: FileCheck documentation contains an example of a numeric variable defined and used on the same line. This is not currently supported by FileCheck so this commit fixes the example to use CHECK-SAME for the variable use. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D79253 --- llvm/docs/CommandGuide/FileCheck.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/docs/CommandGuide/FileCheck.rst b/llvm/docs/CommandGuide/FileCheck.rst index 49db57161810..55fc3f0cabfe 100644 --- a/llvm/docs/CommandGuide/FileCheck.rst +++ b/llvm/docs/CommandGuide/FileCheck.rst @@ -634,7 +634,8 @@ For example: ; CHECK: load r[[#REG:]], [r0] ; CHECK: load r[[#REG+1]], [r1] - ; CHECK: Loading from 0x[[#%x,ADDR:] to 0x[[#ADDR + 7]] + ; CHECK: Loading from 0x[[#%x,ADDR:]] + ; CHECK-SAME: to 0x[[#ADDR + 7]] The above example would match the text: