summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-05-08 17:39:08 +0000
committerCraig Topper <craig.topper@gmail.com>2017-05-08 17:39:08 +0000
commit94a4ac0e50f2b797796048e2c4ce7430a2aeae28 (patch)
tree186ee8526473e008936bb08f4d24867a72662e65 /llvm
parentef869ecf0e1eb0bfce27afe05952c387b5d866f7 (diff)
downloadbcm5719-llvm-94a4ac0e50f2b797796048e2c4ce7430a2aeae28.tar.gz
bcm5719-llvm-94a4ac0e50f2b797796048e2c4ce7430a2aeae28.zip
[SCEV] Make setRange take ConstantRange by value instead of rvalue reference so we don't force anything on the caller.
llvm-svn: 302449
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/ScalarEvolution.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h
index 85350fa159d..919c766ae7b 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolution.h
+++ b/llvm/include/llvm/Analysis/ScalarEvolution.h
@@ -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;
OpenPOWER on IntegriCloud