Commit d877f371 by Leyuan Wang Committed by Tianqi Chen

fix extern naming (#1238)

parent 54874e73
...@@ -27,6 +27,7 @@ void CodeGenC::AddFunction(LoweredFunc f) { ...@@ -27,6 +27,7 @@ void CodeGenC::AddFunction(LoweredFunc f) {
this->InitFuncState(f); this->InitFuncState(f);
// skip the first underscore, so SSA variable starts from _1 // skip the first underscore, so SSA variable starts from _1
GetUniqueName("_"); GetUniqueName("_");
GetUniqueName("extern");
// add to alloc buffer type. // add to alloc buffer type.
for (const auto & kv : f->handle_data_type) { for (const auto & kv : f->handle_data_type) {
RegisterHandleType(kv.first.get(), kv.second.type()); RegisterHandleType(kv.first.get(), kv.second.type());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment