diff --git a/clang/test/CodeGen/c-unicode.c b/clang/test/CodeGen/c-unicode.c --- a/clang/test/CodeGen/c-unicode.c +++ b/clang/test/CodeGen/c-unicode.c @@ -1,5 +1,5 @@ // REQUIRES: x86-registered-target -// RUN: %clang --target=x86_64--linug-gnu -S %s -o - | FileCheck %s -check-prefix=ALLOWED +// RUN: %clang --target=x86_64--linux-gnu -S %s -o - | FileCheck %s -check-prefix=ALLOWED // RUN: not %clang --target=x86_64--linux-gnu -std=c89 -S %s -o - 2>&1 | FileCheck %s -check-prefix=DENIED int \uaccess = 0; // ALLOWED: "곎ss": diff --git a/mypatch.patch b/mypatch.patch new file mode 100644 --- /dev/null +++ b/mypatch.patch @@ -0,0 +1,13 @@ +diff --git a/llvm/utils/vim/indent/llvm.vim b/llvm/utils/vim/indent/llvm.vim +index d1d8c83d1186..75ee9ef485d4 100644 +--- a/llvm/utils/vim/indent/llvm.vim ++++ b/llvm/utils/vim/indent/llvm.vim +@@ -52,7 +52,7 @@ function! GetLLVMIndent() + + " Find a non-blank not-completely commented line above the current line. + let prev_lnum = prevnonblank(v:lnum - 1) +- while prev_lnum > 0 && synIDattr(synID(prev_lnum, indent(prev_lnum)+1, 0), "name") =? "string\|comment" ++ while prev_lnum > 0 && synIDattr(synID(prev_lnum, indent(prev_lnum)+1, 0), "name") =~? "string\|comment" + let prev_lnum = prevnonblank(prev_lnum-1) + endwhile + " Hit the start of the file, use zero indent.