[llvm] r302449 - [SCEV] Make setRange take ConstantRange by value instead of rvalue reference so we don't force anything on the caller.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon May 8 10:39:08 PDT 2017
Author: ctopper
Date: Mon May 8 12:39:08 2017
New Revision: 302449
URL: http://llvm.org/viewvc/llvm-project?rev=302449&view=rev
Log:
[SCEV] Make setRange take ConstantRange by value instead of rvalue reference so we don't force anything on the caller.
Modified:
llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
Modified: llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ScalarEvolution.h?rev=302449&r1=302448&r2=302449&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/ScalarEvolution.h (original)
+++ llvm/trunk/include/llvm/Analysis/ScalarEvolution.h Mon May 8 12:39:08 2017
@@ -782,7 +782,7 @@ private:
/// Set the memoized range for the given SCEV.
const ConstantRange &setRange(const SCEV *S, RangeSignHint Hint,
- ConstantRange &&CR) {
+ ConstantRange CR) {
DenseMap<const SCEV *, ConstantRange> &Cache =
Hint == HINT_RANGE_UNSIGNED ? UnsignedRanges : SignedRanges;
More information about the llvm-commits
mailing list