Index: src/IceCfgNode.cpp |
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp |
index a3f6dd5fd30093232c2c7dd403a4a0d4dc923249..c6decece9668e0952ed62c9c0f4b6d72ce928b48 100644 |
--- a/src/IceCfgNode.cpp |
+++ b/src/IceCfgNode.cpp |
@@ -570,6 +570,7 @@ void CfgNode::genCode() { |
// Ensure target lowering actually moved the cursor. |
assert(Context.getCur() != Orig); |
} |
+ Context.availabilityReset(); |
// Do preliminary lowering of the Phi instructions. |
Target->prelowerPhis(); |
} |
@@ -683,7 +684,7 @@ bool CfgNode::liveness(Liveness *Liveness) { |
// Validate the integrity of the live ranges in this block. If there are any |
// errors, it prints details and returns false. On success, it returns true. |
-bool CfgNode::livenessValidateIntervals(Liveness *Liveness) { |
+bool CfgNode::livenessValidateIntervals(Liveness *Liveness) const { |
if (!BuildDefs::asserts()) |
return true; |