From d9f04b9b98ec3facb2b77a8f9b0c3f0e7331cd92 Mon Sep 17 00:00:00 2001 From: Leyuan Wang Date: Wed, 6 Jun 2018 10:25:10 -0700 Subject: [PATCH] fix extern naming (#1238) --- src/codegen/codegen_c.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codegen/codegen_c.cc b/src/codegen/codegen_c.cc index 9732f0ef65af..82d0df71a308 100644 --- a/src/codegen/codegen_c.cc +++ b/src/codegen/codegen_c.cc @@ -27,6 +27,7 @@ void CodeGenC::AddFunction(LoweredFunc f) { this->InitFuncState(f); // skip the first underscore, so SSA variable starts from _1 GetUniqueName("_"); + GetUniqueName("extern"); // add to alloc buffer type. for (const auto & kv : f->handle_data_type) { RegisterHandleType(kv.first.get(), kv.second.type());