Add a default constructor for LiveRange.
It is useful to be able to create temporary LiveRange object whose members are filled in later. llvm-svn: 175639
This commit is contained in:
parent
8a1a4e7cf7
commit
14a32d8682
|
@ -86,9 +86,10 @@ namespace llvm {
|
|||
SlotIndex end; // End point of the interval (exclusive)
|
||||
VNInfo *valno; // identifier for the value contained in this interval.
|
||||
|
||||
LiveRange() : valno(0) {}
|
||||
|
||||
LiveRange(SlotIndex S, SlotIndex E, VNInfo *V)
|
||||
: start(S), end(E), valno(V) {
|
||||
|
||||
assert(S < E && "Cannot create empty or backwards range");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue