From 9798b931facdf34a2bbc5dc1a89c90086d08b2a5 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 29 Sep 2015 04:30:05 +0000 Subject: [PATCH] Pass ArrayRef by value. NFC. llvm-svn: 248773 --- clang/lib/AST/ExprConstant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 2fb8c9c137b2..df1f6ba4711d 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -5568,7 +5568,7 @@ namespace { VectorExprEvaluator(EvalInfo &info, APValue &Result) : ExprEvaluatorBaseTy(info), Result(Result) {} - bool Success(const ArrayRef &V, const Expr *E) { + bool Success(ArrayRef V, const Expr *E) { assert(V.size() == E->getType()->castAs()->getNumElements()); // FIXME: remove this APValue copy. Result = APValue(V.data(), V.size());