diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-02-20 17:46:51 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-02-20 17:46:51 +0000 |
commit | 2319a2397990c6ae638b79efd43f88135db66d7b (patch) | |
tree | b0bf5bf1ba020dfb94a831a1f4bc6742f5615e4e /include | |
parent | 49deebb5ebcde502fa7908362a5c000e7adbb359 (diff) | |
download | external_llvm-2319a2397990c6ae638b79efd43f88135db66d7b.zip external_llvm-2319a2397990c6ae638b79efd43f88135db66d7b.tar.gz external_llvm-2319a2397990c6ae638b79efd43f88135db66d7b.tar.bz2 |
Add a default constructor for LiveRange.
It is useful to be able to create temporary LiveRange object whose
members are filled in later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/LiveInterval.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 6942885..05f2325 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -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"); } |