diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2015-12-15 02:47:39 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2015-12-15 02:47:39 -0700 |
| commit | 1f48b626a1cef1168d23654f5a9f21ed2196738e (patch) | |
| tree | 697d703a204b26c2cb34b494a7ab53d75785f936 /src/analyze.cpp | |
| parent | 673d638070452d86543c6bb47879e83adcfa73a1 (diff) | |
| download | zig-1f48b626a1cef1168d23654f5a9f21ed2196738e.tar.gz zig-1f48b626a1cef1168d23654f5a9f21ed2196738e.zip | |
std: even more efficient inline assembly
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 740e735bb7..5ba0ae16a7 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -315,7 +315,7 @@ static void preview_function_declarations(CodeGen *g, ImportTableEntry *import, auto entry = import->fn_table.maybe_get(proto_name); bool skip = false; bool is_internal = (proto_node->data.fn_proto.visib_mod != FnProtoVisibModExport); - bool is_pub = (proto_node->data.fn_proto.visib_mod == FnProtoVisibModPub); + bool is_pub = (proto_node->data.fn_proto.visib_mod != FnProtoVisibModPrivate); if (entry) { add_node_error(g, node, buf_sprintf("redefinition of '%s'", buf_ptr(proto_name))); |
