Index: runtime/vm/kernel.h |
diff --git a/runtime/vm/kernel.h b/runtime/vm/kernel.h |
index e2970b11074baceaec75a79090a06ff9f1872841..70f5f36405f2469ea2a1f408c0b6643eff13f58e 100644 |
--- a/runtime/vm/kernel.h |
+++ b/runtime/vm/kernel.h |
@@ -429,7 +429,10 @@ class TreeNode : public Node { |
virtual void AcceptVisitor(Visitor* visitor); |
virtual void AcceptTreeVisitor(TreeVisitor* visitor) = 0; |
- intptr_t kernel_offset() const { return kernel_offset_; } |
+ intptr_t kernel_offset() const { |
+ ASSERT(kernel_offset_ > 0); |
+ return kernel_offset_; |
+ } |
bool can_stream() { return can_stream_; } |
protected: |