From: Owen Anderson Date: Thu, 5 Aug 2010 20:51:10 +0000 (+0000) Subject: Give ConstantRange an operator= X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9850a288664087875c7c35bec8c92b72a72ac142;p=oota-llvm.git Give ConstantRange an operator= git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110376 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h index 6342c6f1bdd..607a94fb4b5 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 {