From d6b01931ef8a04777ae198af323c2b6ba998f7b1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 26 May 2017 16:44:13 -0400 Subject: implicitly cast by value var args parameters to const references See #336 --- src/analyze.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/analyze.cpp') 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; -- cgit v1.2.3