aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/Lexer.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2014-10-29 14:42:12 +0000
committerJay Foad <jay.foad@gmail.com>2014-10-29 14:42:12 +0000
commit6af95d3864ca847490c762f87e99b816b3cbde9f (patch)
tree60a560f3d5caf286a72521533f9c526c49804ba7 /clang/lib/Lex/Lexer.cpp
parent95338a09c01f9044affaeb82d5291e9b3e02125f (diff)
downloadllvm-6af95d3864ca847490c762f87e99b816b3cbde9f.zip
llvm-6af95d3864ca847490c762f87e99b816b3cbde9f.tar.gz
llvm-6af95d3864ca847490c762f87e99b816b3cbde9f.tar.bz2
Fix warning in Altivec code when building with GCC 4.8.2 on Ubuntu 14.04.
llvm-svn: 220855
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r--clang/lib/Lex/Lexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index e7b4891..0aaad9b 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/lib/Lex/Lexer.cpp
@@ -2319,7 +2319,7 @@ bool Lexer::SkipBlockComment(Token &Result, const char *CurPtr,
'/', '/', '/', '/', '/', '/', '/', '/'
};
while (CurPtr+16 <= BufferEnd &&
- !vec_any_eq(*(vector unsigned char*)CurPtr, Slashes))
+ !vec_any_eq(*(const vector unsigned char*)CurPtr, Slashes))
CurPtr += 16;
#else
// Scan for '/' quickly. Many block comments are very large.