]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Add convenient overload for build_libcall
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 8 Feb 2026 19:50:39 +0000 (20:50 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 8 Feb 2026 19:55:39 +0000 (20:55 +0100)
commit742bafdeed7cbea68ca0d995ce43df523fce0261
tree885048bff6d8d9ccb1cb436c06fd44874b8b6318
parent9aa5bdf9a50fce6e3bf42f38eb9cf57abb8eecbe
d: Add convenient overload for build_libcall

Most generated calls to build_libcall don't require any special
conversions from the generic type returned by the library. Add an
overload that calls the library function without doing any nop casts.

gcc/d/ChangeLog:

* d-tree.h (build_libcall): New declaration.
* runtime.cc (build_libcall_1): New function.
(build_libcall): New overload.
* d-codegen.cc (build_assert_call): Call build_libcall without Type
argument.
(build_array_bounds_call): Likewise.
(build_bounds_index_condition): Likewise.
(build_bounds_slice_condition): Likewise.
(build_closure): Likewise.
* expr.cc (ExprVisitor::visit): Likewise.
* toir.cc (IRVisitor::visit): Likewise.
gcc/d/d-codegen.cc
gcc/d/d-tree.h
gcc/d/expr.cc
gcc/d/runtime.cc
gcc/d/toir.cc