Index: src/IceCfgNode.cpp |
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp |
index 3fd63e2c32abc0d225d36d8322139bb6ebb96e09..2f2897c612d510a73be9581f0800c5e89413f486 100644 |
--- a/src/IceCfgNode.cpp |
+++ b/src/IceCfgNode.cpp |
@@ -235,8 +235,9 @@ bool CfgNode::liveness(Liveness *Liveness) { |
// with the sentinel instruction number 0. |
std::vector<InstNumberT> &LiveBegin = Liveness->getLiveBegin(this); |
std::vector<InstNumberT> &LiveEnd = Liveness->getLiveEnd(this); |
- LiveBegin.assign(NumVars, Inst::NumberSentinel); |
- LiveEnd.assign(NumVars, Inst::NumberSentinel); |
+ InstNumberT Sentinel = Inst::NumberSentinel; |
+ LiveBegin.assign(NumVars, Sentinel); |
+ LiveEnd.assign(NumVars, Sentinel); |
// Initialize Live to be the union of all successors' LiveIn. |
for (NodeList::const_iterator I = OutEdges.begin(), E = OutEdges.end(); |
I != E; ++I) { |