Pass ArrayRef by value. NFC.

llvm-svn: 248773
This commit is contained in:
Craig Topper 2015-09-29 04:30:05 +00:00
parent 5f600d6a49
commit 9798b931fa
1 changed files with 1 additions and 1 deletions

View File

@ -5568,7 +5568,7 @@ namespace {
VectorExprEvaluator(EvalInfo &info, APValue &Result)
: ExprEvaluatorBaseTy(info), Result(Result) {}
bool Success(const ArrayRef<APValue> &V, const Expr *E) {
bool Success(ArrayRef<APValue> V, const Expr *E) {
assert(V.size() == E->getType()->castAs<VectorType>()->getNumElements());
// FIXME: remove this APValue copy.
Result = APValue(V.data(), V.size());