diff options
author | Owen Anderson <resistor@mac.com> | 2010-08-05 20:51:10 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-08-05 20:51:10 +0000 |
commit | 9850a288664087875c7c35bec8c92b72a72ac142 (patch) | |
tree | 17f25e8b56c164b5bd567f7b4d00ac30baac5036 /include/llvm/Support/ConstantRange.h | |
parent | 3aff66905f0ce6da0d55d95a5d414604da4f7d30 (diff) |
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/Support/ConstantRange.h')
-rw-r--r-- | include/llvm/Support/ConstantRange.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h index 6342c6f1bd..607a94fb4b 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 { |