summaryrefslogtreecommitdiff
path: root/src/hir/dump.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/hir/dump.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/hir/dump.cpp')
-rw-r--r--src/hir/dump.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/hir/dump.cpp b/src/hir/dump.cpp
index 649116e0..75dde59f 100644
--- a/src/hir/dump.cpp
+++ b/src/hir/dump.cpp
@@ -262,13 +262,13 @@ namespace {
void visit_constant(::HIR::ItemPath p, ::HIR::Constant& item) override
{
m_os << indent() << "const " << p.get_name() << ": " << item.m_type << " = " << item.m_value_res;
- if( item.m_value )
- {
- m_os << " /*= ";
- item.m_value->visit(*this);
- m_os << "*/";
- }
- m_os << ";\n";
+ if( item.m_value )
+ {
+ m_os << " /*= ";
+ item.m_value->visit(*this);
+ m_os << "*/";
+ }
+ m_os << ";\n";
}
// - Misc
@@ -530,7 +530,7 @@ namespace {
m_os << ", ";
}
m_os << ")";
- m_os << "/* : " << node.m_res_type << " */";
+ m_os << "/* : " << node.m_res_type << " */";
}
void visit(::HIR::ExprNode_CallValue& node) override
{