From: Jay Foad Date: Wed, 29 Oct 2014 14:42:12 +0000 (+0000) Subject: Fix warning in Altivec code when building with GCC 4.8.2 on Ubuntu 14.04. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5f351f9918d533a7c45186a3c5bc53d63e0704b;p=clang Fix warning in Altivec code when building with GCC 4.8.2 on Ubuntu 14.04. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220855 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp index e7b48917c6..0aaad9bafb 100644 --- a/lib/Lex/Lexer.cpp +++ b/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.