summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2020-02-06 15:58:29 +0100
committerHans Wennborg <hans@chromium.org>2020-02-11 10:26:55 +0100
commit699e2a6c5551eacf10be7e64f579120954f55b10 (patch)
tree390404f2ac9e56247559f7d4903235df5d646394
parentf23caecc0901d930203874ebeb8361a6c297f539 (diff)
downloadbcm5719-llvm-699e2a6c5551eacf10be7e64f579120954f55b10.tar.gz
bcm5719-llvm-699e2a6c5551eacf10be7e64f579120954f55b10.zip
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 3185c30c54d0af5bffbff3bcfd721668d086ff10)
-rw-r--r--clang/lib/Lex/Lexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index 648bda27057..981111d0374 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/lib/Lex/Lexer.cpp
@@ -2552,8 +2552,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.
OpenPOWER on IntegriCloud