aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {