Make sure that Limit::vn is initialized
authorMike Danes <onemihaid@hotmail.com>
Tue, 7 Nov 2017 18:38:58 +0000 (20:38 +0200)
committerMike Danes <onemihaid@hotmail.com>
Tue, 7 Nov 2017 18:38:58 +0000 (20:38 +0200)
There is code in RangeCheck::MergeEdgeAssertions that checks the limit's vn even if the limit type is keConstant.

src/jit/rangecheck.h

index 9cc0d51..aaea329 100644 (file)
@@ -93,7 +93,7 @@ struct Limit
     {
     }
 
-    Limit(LimitType type, int cns) : cns(cns), type(type)
+    Limit(LimitType type, int cns) : cns(cns), vn(ValueNumStore::NoVN), type(type)
     {
         assert(type == keConstant);
     }