projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aff669
)
Give ConstantRange an operator=
author
Owen Anderson
<resistor@mac.com>
Thu, 5 Aug 2010 20:51:10 +0000
(20:51 +0000)
committer
Owen Anderson
<resistor@mac.com>
Thu, 5 Aug 2010 20:51:10 +0000
(20:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110376
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/ConstantRange.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/ConstantRange.h
b/include/llvm/Support/ConstantRange.h
index 6342c6f1bdde8c4d0df97645ad6d0e4a0c06d640..607a94fb4b5966a86f5663e4ec570d797204d7f6 100644
(file)
--- 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 {