From 9850a288664087875c7c35bec8c92b72a72ac142 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 5 Aug 2010 20:51:10 +0000 Subject: [PATCH] Give ConstantRange an operator= git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110376 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/ConstantRange.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 {