From 8e3ab28be95de4faca64d5abab21f1948f71510b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 13 May 2016 09:23:03 -0700 Subject: ability to cast maybe pointer to isize/usize also ability to put noalias on maybe pointer --- src/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index d30c9e3f44..f42cf5a1a0 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -3923,7 +3923,7 @@ static void do_code_gen(CodeGen *g) { TypeTableEntry *param_type = info->type; LLVMValueRef argument_val = LLVMGetParam(fn_table_entry->fn_value, gen_index); bool param_is_noalias = param_node->data.param_decl.is_noalias; - if (param_type->id == TypeTableEntryIdPointer && param_is_noalias) { + if (param_is_noalias) { LLVMAddAttribute(argument_val, LLVMNoAliasAttribute); } if ((param_type->id == TypeTableEntryIdPointer && (param_type->data.pointer.is_const || fn_table_entry->is_pure)) || -- cgit v1.2.3