summaryrefslogtreecommitdiff
path: root/src/trans/codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trans/codegen.cpp')
-rw-r--r--src/trans/codegen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trans/codegen.cpp b/src/trans/codegen.cpp
index caba6e43..a4cec3e2 100644
--- a/src/trans/codegen.cpp
+++ b/src/trans/codegen.cpp
@@ -251,13 +251,13 @@ void Trans_Codegen(const ::std::string& outfile, const ::HIR::Crate& crate, cons
assert(ent.second->ptr);
const auto& stat = *ent.second->ptr;
- if( ! stat.m_value_res.is_Invalid() )
+ if( stat.m_value_res.is_Invalid() )
{
- codegen->emit_static_local(ent.first, stat, ent.second->pp);
+ codegen->emit_static_ext(ent.first, stat, ent.second->pp);
}
else
{
- codegen->emit_static_ext(ent.first, stat, ent.second->pp);
+ codegen->emit_static_local(ent.first, stat, ent.second->pp);
}
}