r248773 - Pass ArrayRef by value. NFC.

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 21:30:05 PDT 2015


Author: ctopper
Date: Mon Sep 28 23:30:05 2015
New Revision: 248773

URL: http://llvm.org/viewvc/llvm-project?rev=248773&view=rev
Log:
Pass ArrayRef by value. NFC.

Modified:
    cfe/trunk/lib/AST/ExprConstant.cpp

Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=248773&r1=248772&r2=248773&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Mon Sep 28 23:30:05 2015
@@ -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());




More information about the cfe-commits mailing list