Add a default constructor for LiveRange.
[oota-llvm.git] / include / llvm / CodeGen / LiveInterval.h
index 69428853cdf63e362283d2978e13da893a9cf191..05f232557b0c9c4ab3aa21706cb00d763583264f 100644 (file)
@@ -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");
     }