diff options
-rw-r--r-- | src/trans/codegen.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/trans/codegen.cpp b/src/trans/codegen.cpp index 043e9b43..e4ca0b5a 100644 --- a/src/trans/codegen.cpp +++ b/src/trans/codegen.cpp @@ -61,7 +61,13 @@ void Trans_Codegen(const ::std::string& outfile, const ::HIR::Crate& crate, cons codegen->emit_function_proto(ent.first, *ent.second->ptr, ent.second->pp); } else { - codegen->emit_function_ext(ent.first, *ent.second->ptr, ent.second->pp); + // TODO: Why would an intrinsic be in the queue? + // - If it's exported it does. + if( ent.second->ptr->m_abi == "rust-intrinsic" ) { + } + else { + codegen->emit_function_ext(ent.first, *ent.second->ptr, ent.second->pp); + } } } // 3. Emit statics |