commit | bbe759cf95a5df5497549abadb56282939868da1 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Mon Jul 29 06:47:04 2013 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Mon Jul 29 06:47:04 2013 +0000 |
tree | 7a9f85bec95bc1c1d19ddf023a870e67f46f2ec7 | |
parent | 393f5ff6b0b6d22a7ed7c29a68f6d20fe31cbbb1 [diff] |
Return ExprError if both arguments to the mask form of __builtin_shufflvector don't have the same number of elements or the mask isn't an integer vector. Previously a diagnostic was issued, but the code went ahead and built the ShuffleVectorExpr. While I'm here also simplify a couple lines by wrapping the return ExprError around the Diag calls. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187344 91177308-0d34-0410-b5e6-96231b3b80d8