From 1de743647f698435915fcf41118afa2b66cdbab8 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 8 May 2017 17:39:08 +0000 Subject: [PATCH] [SCEV] Make setRange take ConstantRange by value instead of rvalue reference so we don't force anything on the caller. llvm-svn: 302449 --- include/llvm/Analysis/ScalarEvolution.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index 85350fa159d..919c766ae7b 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/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 &Cache = Hint == HINT_RANGE_UNSIGNED ? UnsignedRanges : SignedRanges;