projects
/
llvm-toolchain-9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d0b36d
)
[PATCH] Prefer __vector over vector keyword for altivec
author
serge-sans-paille
<sguelton@redhat.com>
Thu, 6 Feb 2020 14:58:29 +0000
(15:58 +0100)
committer
Gianfranco Costamagna
<locutusofborg@debian.org>
Fri, 8 Jan 2021 11:48:25 +0000
(11:48 +0000)
`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
clang/lib/Lex/Lexer.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Lex/Lexer.cpp
b/clang/lib/Lex/Lexer.cpp
index db53e6bec0440eb26c79ffcacb1d624df9a06135..06089a566fd883ab540dc6f3f9fb01457658a68b 100644
(file)
--- 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.