From: serge-sans-paille Date: Thu, 6 Feb 2020 14:58:29 +0000 (+0100) Subject: [PATCH] Prefer __vector over vector keyword for altivec X-Git-Tag: archive/raspbian/1%9.0.1-16.1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b4e446dff0883ba6243be432888c9e61d8bbdd86;p=llvm-toolchain-9.git [PATCH] Prefer __vector over vector keyword for altivec `vector' uses the keyword-and-predefine mode from gcc, while __vector is reliably supported. As a side effect, it also makes the code consistent in its usage of __vector. Differential Revision: https://reviews.llvm.org/D74129 Gbp-Pq: Name 3185c30c54d0af5bffbff3bcfd721668d086ff10.patch --- diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index db53e6bec..06089a566 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -2541,8 +2541,8 @@ bool Lexer::SkipBlockComment(Token &Result, const char *CurPtr, '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/', '/' }; - while (CurPtr+16 <= BufferEnd && - !vec_any_eq(*(const vector unsigned char*)CurPtr, Slashes)) + while (CurPtr + 16 <= BufferEnd && + !vec_any_eq(*(const __vector unsigned char *)CurPtr, Slashes)) CurPtr += 16; #else // Scan for '/' quickly. Many block comments are very large.