From 11f75973ae5cc577d2f8db367d5d7524a5d9bd3d Mon Sep 17 00:00:00 2001 From: kobalicek Date: Wed, 19 Nov 2025 22:00:27 +0100 Subject: [PATCH] [bug] Fixed UniCompiler's new_reg to forward to new_reg It forwarded to new_similar_reg, which would be a compile-time error. --- asmjit/ujit/unicompiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asmjit/ujit/unicompiler.h b/asmjit/ujit/unicompiler.h index 79b7d7c..651e2ac 100644 --- a/asmjit/ujit/unicompiler.h +++ b/asmjit/ujit/unicompiler.h @@ -761,7 +761,7 @@ public: template [[nodiscard]] ASMJIT_INLINE RegT new_reg(TypeId type_id, Args&&... args) noexcept { - return cc->new_similar_reg(type_id, std::forward(args)...); + return cc->new_reg(type_id, std::forward(args)...); } //! Wraps `BackendCompiler::new_similar_reg(ref, args...)`.