Index: src/compiler/liveness-analyzer.h |
diff --git a/src/compiler/liveness-analyzer.h b/src/compiler/liveness-analyzer.h |
index 1e2f85b45e5f2fc7e646893baa52e7d7b166c28a..9b09724eefab02086bec129724008ca72968b531 100644 |
--- a/src/compiler/liveness-analyzer.h |
+++ b/src/compiler/liveness-analyzer.h |
@@ -85,6 +85,10 @@ class LivenessAnalyzerBlock { |
void Bind(int var) { entries_.push_back(Entry(Entry::kBind, var)); } |
void Checkpoint(Node* node) { entries_.push_back(Entry(node)); } |
void AddPredecessor(LivenessAnalyzerBlock* b) { predecessors_.push_back(b); } |
+ LivenessAnalyzerBlock* GetPredecessor() { |
+ DCHECK(predecessors_.size() == 1); |
+ return predecessors_[0]; |
+ } |
private: |
class Entry { |