aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-05-26 16:44:13 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-05-26 16:44:13 -0400
commitd6b01931ef8a04777ae198af323c2b6ba998f7b1 (patch)
treeafa92361832d1b071fb029678524a4b7f01174f8 /src/analyze.cpp
parentc42c91ee7c630d47e6adc0a940b5f10bbe04d13a (diff)
downloadzig-d6b01931ef8a04777ae198af323c2b6ba998f7b1.tar.gz
zig-d6b01931ef8a04777ae198af323c2b6ba998f7b1.zip
implicitly cast by value var args parameters to const references
See #336
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 952f5468b3..b7069937d6 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -299,7 +299,7 @@ uint64_t type_size_bits(CodeGen *g, TypeTableEntry *type_entry) {
return LLVMSizeOfTypeInBits(g->target_data_ref, type_entry->type_ref);
}
-static bool type_is_copyable(CodeGen *g, TypeTableEntry *type_entry) {
+bool type_is_copyable(CodeGen *g, TypeTableEntry *type_entry) {
type_ensure_zero_bits_known(g, type_entry);
if (!type_has_bits(type_entry))
return true;