Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index c6953cdad52cca2b4ccd602ff1f67ba6edf950b7..b61013d8801e34008ae9473a9c43c876297c7e6d 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -1889,6 +1889,9 @@ class HGraphBuilder { |
// the SourcePosition assuming that this position corresponds to the |
// same function as current position_. |
SourcePosition ScriptPositionToSourcePosition(int position) { |
+ if (position == RelocInfo::kNoPosition) { |
+ return SourcePosition::Unknown(); |
+ } |
SourcePosition pos = position_; |
pos.set_position(position - start_position_); |
return pos; |