]> granicus.if.org Git - clang/commitdiff
Fix warning in Altivec code when building with GCC 4.8.2 on Ubuntu 14.04.
authorJay Foad <jay.foad@gmail.com>
Wed, 29 Oct 2014 14:42:12 +0000 (14:42 +0000)
committerJay Foad <jay.foad@gmail.com>
Wed, 29 Oct 2014 14:42:12 +0000 (14:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220855 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Lexer.cpp

index e7b48917c63820497e3d40d71358f002590909d9..0aaad9bafba65b79109c60143cdc8d45662f5581 100644 (file)
@@ -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.