aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2015-12-15 02:47:39 -0700
committerAndrew Kelley <superjoe30@gmail.com>2015-12-15 02:47:39 -0700
commit1f48b626a1cef1168d23654f5a9f21ed2196738e (patch)
tree697d703a204b26c2cb34b494a7ab53d75785f936 /src/codegen.cpp
parent673d638070452d86543c6bb47879e83adcfa73a1 (diff)
downloadzig-1f48b626a1cef1168d23654f5a9f21ed2196738e.tar.gz
zig-1f48b626a1cef1168d23654f5a9f21ed2196738e.zip
std: even more efficient inline assembly
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index f60f116a2c..2863335747 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -1611,7 +1611,7 @@ static ImportTableEntry *codegen_add_code(CodeGen *g, Buf *src_dirname, Buf *src
assert(proto_node->type == NodeTypeFnProto);
Buf *proto_name = &proto_node->data.fn_proto.name;
- bool is_exported = (proto_node->data.fn_proto.visib_mod == FnProtoVisibModExport);
+ bool is_exported = (proto_node->data.fn_proto.visib_mod != FnProtoVisibModPrivate);
if (buf_eql_str(proto_name, "main") && is_exported) {
g->insert_bootstrap_code = true;