Skip to content

Commit 699e2a6

Browse files
serge-sans-paillezmodem
authored andcommitted
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 (cherry picked from commit 3185c30)
1 parent f23caec commit 699e2a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Lex/Lexer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2552,8 +2552,8 @@ bool Lexer::SkipBlockComment(Token &Result, const char *CurPtr,
25522552
'/', '/', '/', '/', '/', '/', '/', '/',
25532553
'/', '/', '/', '/', '/', '/', '/', '/'
25542554
};
2555-
while (CurPtr+16 <= BufferEnd &&
2556-
!vec_any_eq(*(const vector unsigned char*)CurPtr, Slashes))
2555+
while (CurPtr + 16 <= BufferEnd &&
2556+
!vec_any_eq(*(const __vector unsigned char *)CurPtr, Slashes))
25572557
CurPtr += 16;
25582558
#else
25592559
// Scan for '/' quickly. Many block comments are very large.

0 commit comments

Comments
 (0)