aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-10-13 19:42:22 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-10-13 19:42:22 +0000
commitf845673b2459f1daa76913333b0b24887a497f5d (patch)
tree22058ea2012b3d8f6b5718dd800ced4cb2706f71 /contrib
parent3f740d43932be7ec08f038b9b10e6325d0145563 (diff)
downloadsrc-f845673b2459f1daa76913333b0b24887a497f5d.tar.gz
src-f845673b2459f1daa76913333b0b24887a497f5d.zip
Notes
Diffstat (limited to 'contrib')
-rw-r--r--contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp b/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
index 3e235c85cc8b..d301e6c732ab 100644
--- a/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
+++ b/contrib/llvm-project/clang/lib/Sema/SemaExpr.cpp
@@ -7402,7 +7402,7 @@ Sema::ActOnCastExpr(Scope *S, SourceLocation LParenLoc,
}
if (PE || PLE->getNumExprs() == 1) {
Expr *E = (PE ? PE->getSubExpr() : PLE->getExpr(0));
- if (!E->getType()->isVectorType())
+ if (!E->isTypeDependent() && !E->getType()->isVectorType())
isVectorLiteral = true;
}
else