[Sema] Extend GetSignedVectorType to deal with non ExtVector types
authorSimon Dardis <simon.dardis@imgtec.com>
Thu, 6 Apr 2017 10:38:03 +0000 (10:38 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Thu, 6 Apr 2017 10:38:03 +0000 (10:38 +0000)
commitf81c995dabfb0c6b53f34d5ccaafcac26c92ddaa
tree6f1e11b5507b2b218643a4b6837bf86d9fa760cc
parent77d3c770d3a82fc507dc041b79908a6254b983e4
[Sema] Extend GetSignedVectorType to deal with non ExtVector types

This improves some error messages which would otherwise refer to
ext_vector_type types in contexts where there are no such types.

Factored out from D25866 at reviewer's request.

Reviewers: bruno

Differential Revision: https://reviews.llvm.org/D31667

llvm-svn: 299641
clang/lib/Sema/SemaExpr.cpp
clang/test/Sema/vector-ops.c