summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-01-13 14:39:03 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-01-13 14:39:03 +0000
commit061f4a5fe6c60116831fa18e7db7faa24c7bd1e2 (patch)
tree230b3008532884534ba5398c518949a2e906a27b /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
parent2178370e534d12d24ed505610b7569e12de5e3ad (diff)
downloadbcm5719-llvm-061f4a5fe6c60116831fa18e7db7faa24c7bd1e2.tar.gz
bcm5719-llvm-061f4a5fe6c60116831fa18e7db7faa24c7bd1e2.zip
Apply clang-tidy's performance-unnecessary-value-param to LLVM.
With some minor manual fixes for using function_ref instead of std::function. No functional change intended. llvm-svn: 291904
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index 1de742050cb..13c3549c238 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -634,7 +634,7 @@ static BDVState meetBDVStateImpl(const BDVState &LHS, const BDVState &RHS) {
// Values of type BDVState form a lattice, and this function implements the meet
// operation.
-static BDVState meetBDVState(BDVState LHS, BDVState RHS) {
+static BDVState meetBDVState(const BDVState &LHS, const BDVState &RHS) {
BDVState Result = meetBDVStateImpl(LHS, RHS);
assert(Result == meetBDVStateImpl(RHS, LHS) &&
"Math is wrong: meet does not commute!");
OpenPOWER on IntegriCloud