aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-08-05 20:51:10 +0000
committerOwen Anderson <resistor@mac.com>2010-08-05 20:51:10 +0000
commit9850a288664087875c7c35bec8c92b72a72ac142 (patch)
tree17f25e8b56c164b5bd567f7b4d00ac30baac5036 /include/llvm
parent3aff66905f0ce6da0d55d95a5d414604da4f7d30 (diff)
downloadexternal_llvm-9850a288664087875c7c35bec8c92b72a72ac142.zip
external_llvm-9850a288664087875c7c35bec8c92b72a72ac142.tar.gz
external_llvm-9850a288664087875c7c35bec8c92b72a72ac142.tar.bz2
Give ConstantRange an operator=
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Support/ConstantRange.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h
index 6342c6f..607a94f 100644
--- a/include/llvm/Support/ConstantRange.h
+++ b/include/llvm/Support/ConstantRange.h
@@ -139,6 +139,12 @@ public:
///
APInt getSignedMin() const;
+ /// operator= - Copy one ConstantRange over another.
+ void operator=(const ConstantRange &CR) {
+ Lower = CR.Lower;
+ Upper = CR.Upper;
+ }
+
/// operator== - Return true if this range is equal to another range.
///
bool operator==(const ConstantRange &CR) const {