summaryrefslogtreecommitdiff
path: root/src/span.cpp
diff options
context:
space:
mode:
authorJohn Hodge (bugs) <tpg@mutabah.net>2017-07-06 17:41:10 +0800
committerJohn Hodge (bugs) <tpg@mutabah.net>2017-07-06 17:41:10 +0800
commit48e2c4973d5401c9f7d0ee2bac22ac6015744961 (patch)
treeb93fb21b85343633e2d0c00c42ea7a388bb6f883 /src/span.cpp
parentce3d36a90b9efd11c94f9084b5e727d65b6509a7 (diff)
parentc4e88b3c49736e71534c918a83956885c052beb8 (diff)
downloadmrust-48e2c4973d5401c9f7d0ee2bac22ac6015744961.tar.gz
Merge branch 'master' of https://github.com/thepowersgang/mrustc
# Conflicts: # src/trans/codegen_c.cpp
Diffstat (limited to 'src/span.cpp')
-rw-r--r--src/span.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/span.cpp b/src/span.cpp
index 29d7201b..8d176671 100644
--- a/src/span.cpp
+++ b/src/span.cpp
@@ -12,6 +12,7 @@
#include <common.hpp>
Span::Span(const Span& x):
+ outer_span(x.outer_span),
filename(x.filename),
start_line(x.start_line),
start_ofs(x.start_ofs),
@@ -20,6 +21,7 @@ Span::Span(const Span& x):
{
}
Span::Span(const Position& pos):
+ outer_span(),
filename(pos.filename),
start_line(pos.line),
start_ofs(pos.ofs),
@@ -28,6 +30,7 @@ Span::Span(const Position& pos):
{
}
Span::Span():
+ outer_span(),
filename("")/*,
start_line(0), start_ofs(0),
end_line(0), end_ofs(0) // */