From 6af95d3864ca847490c762f87e99b816b3cbde9f Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Wed, 29 Oct 2014 14:42:12 +0000 Subject: Fix warning in Altivec code when building with GCC 4.8.2 on Ubuntu 14.04. llvm-svn: 220855 --- clang/lib/Lex/Lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index e7b48917c63..0aaad9bafba 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. -- cgit v1.2.3