r220855 - Fix warning in Altivec code when building with GCC 4.8.2 on Ubuntu 14.04.

Jay Foad jay.foad at gmail.com
Wed Oct 29 07:42:12 PDT 2014


Author: foad
Date: Wed Oct 29 09:42:12 2014
New Revision: 220855

URL: http://llvm.org/viewvc/llvm-project?rev=220855&view=rev
Log:
Fix warning in Altivec code when building with GCC 4.8.2 on Ubuntu 14.04.

Modified:
    cfe/trunk/lib/Lex/Lexer.cpp

Modified: cfe/trunk/lib/Lex/Lexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Lexer.cpp?rev=220855&r1=220854&r2=220855&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Lexer.cpp (original)
+++ cfe/trunk/lib/Lex/Lexer.cpp Wed Oct 29 09:42:12 2014
@@ -2319,7 +2319,7 @@ bool Lexer::SkipBlockComment(Token &Resu
         '/', '/', '/', '/',  '/', '/', '/', '/'
       };
       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.





More information about the cfe-commits mailing list