Skip to content

Commit 07f2d94

Browse files
committed
1 parent 90cfaa3 commit 07f2d94

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

3rdparty/sol2/sol/sol.hpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19416,7 +19416,13 @@ namespace sol { namespace function_detail {
1941619416
}
1941719417

1941819418
template <bool is_yielding, bool no_trampoline>
19419-
static int call(lua_State* L) noexcept(std::is_nothrow_copy_assignable_v<T>) {
19419+
static int call(lua_State* L)
19420+
#if SOL_IS_ON(SOL_COMPILER_CLANG)
19421+
// apparent regression in clang 18 - llvm/llvm-project#91362
19422+
#else
19423+
noexcept(std::is_nothrow_copy_assignable_v<T>)
19424+
#endif
19425+
{
1942019426
int nr;
1942119427
if constexpr (no_trampoline) {
1942219428
nr = real_call(L);
@@ -19456,7 +19462,12 @@ namespace sol { namespace function_detail {
1945619462
}
1945719463

1945819464
template <bool is_yielding, bool no_trampoline>
19459-
static int call(lua_State* L) noexcept(std::is_nothrow_copy_assignable_v<T>) {
19465+
static int call(lua_State* L) {
19466+
#if SOL_IS_ON(SOL_COMPILER_CLANG)
19467+
// apparent regression in clang 18 - llvm/llvm-project#91362
19468+
#else
19469+
noexcept(std::is_nothrow_copy_assignable_v<T>)
19470+
#endif
1946019471
int nr;
1946119472
if constexpr (no_trampoline) {
1946219473
nr = real_call(L);

0 commit comments

Comments
 (0)