Use array range beginning with one
This commit is contained in:
@@ -25,6 +25,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "tree.h"
|
||||
#include "tree-iterator.h"
|
||||
#include "stringpool.h"
|
||||
#include "fold-const.h"
|
||||
|
||||
#include "elna/boot/ast.h"
|
||||
#include "elna/boot/symbol.h"
|
||||
@@ -97,6 +98,8 @@ namespace elna::gcc
|
||||
tree fndecl_type = build_function_type(return_type, TYPE_ARG_TYPES(*builtin));
|
||||
tree builtin_addr = build1_loc(call_location, ADDR_EXPR, build_pointer_type(fndecl_type), *builtin);
|
||||
|
||||
return build_call_nary(return_type, builtin_addr, sizeof...(Args), arguments...);
|
||||
tree argument_trees[sizeof...(Args)] = {arguments...};
|
||||
|
||||
return fold_build_call_array(return_type, builtin_addr, sizeof...(Args), argument_trees);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user