From 1409e6e7c63bb1038ff3d36dc217f595d22762d4 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 17 Sep 2013 04:07:02 +0000 Subject: 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. llvm-svn: 190844 --- clang/lib/AST/ExprConstant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/AST/ExprConstant.cpp') 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); -- cgit v1.2.3