rename restrict to noalias

This commit is contained in:
Andrew Kelley
2016-01-08 23:48:24 -07:00
parent b7dd88ad68
commit 0c24ed8a81
10 changed files with 48 additions and 48 deletions

View File

@@ -1840,7 +1840,7 @@ static void do_code_gen(CodeGen *g) {
TypeTableEntry *param_type = fn_proto_type_from_type_node(g, type_node);
LLVMValueRef argument_val = LLVMGetParam(fn, gen_param_index);
if (param_type->id == TypeTableEntryIdPointer &&
param_type->data.pointer.is_restrict)
param_type->data.pointer.is_noalias)
{
LLVMAddAttribute(argument_val, LLVMNoAliasAttribute);
} else if (param_type->id == TypeTableEntryIdPointer &&