Commit 3185c30c authored by serge-sans-paille's avatar serge-sans-paille
Browse files

Prefer __vector over vector keyword for altivec

`vector' uses the keyword-and-predefine mode from gcc, while __vector is
reliably supported.

As a side effect, it also makes the code consistent in its usage of __vector.

Differential Revision: https://reviews.llvm.org/D74129
parent 6ff0228c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2553,7 +2553,7 @@ bool Lexer::SkipBlockComment(Token &Result, const char *CurPtr,
        '/', '/', '/', '/',  '/', '/', '/', '/'
      };
      while (CurPtr + 16 <= BufferEnd &&
             !vec_any_eq(*(const 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.