1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[SCEV] Make setRange take ConstantRange by value instead of rvalue reference so we don't force anything on the caller.

llvm-svn: 302449
This commit is contained in:
Craig Topper 2017-05-08 17:39:08 +00:00
parent 3fb44dd62f
commit 1de743647f

View File

@ -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;