diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-09-17 04:07:02 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-09-17 04:07:02 +0000 |
commit | 1409e6e7c63bb1038ff3d36dc217f595d22762d4 (patch) | |
tree | 1c20e70c11c58acaa5140d5a47a816c49c43c6a7 /clang/lib/AST/ExprConstant.cpp | |
parent | 79d1bff2ad2c7fac06418b5e4f74edb1d8cce03d (diff) | |
download | bcm5719-llvm-1409e6e7c63bb1038ff3d36dc217f595d22762d4.tar.gz bcm5719-llvm-1409e6e7c63bb1038ff3d36dc217f595d22762d4.zip |
Fix const-eval of vector init-lists of a vector.
Like any other type, an init list for a vector can have the same type as
the vector itself; handle that case.
<rdar://problem/14990460>
llvm-svn: 190844
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 0a2cc7b3d6d..8ca33cbd20c 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -5262,7 +5262,7 @@ VectorExprEvaluator::VisitInitListExpr(const InitListExpr *E) { while (CountElts < NumElements) { // Handle nested vector initialization. if (CountInits < NumInits - && E->getInit(CountInits)->getType()->isExtVectorType()) { + && E->getInit(CountInits)->getType()->isVectorType()) { APValue v; if (!EvaluateVector(E->getInit(CountInits), v, Info)) return Error(E); |