mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-16 20:17:05 +03:00
[bug] Fixed UniCompiler's new_reg to forward to new_reg
It forwarded to new_similar_reg, which would be a compile-time error.
This commit is contained in:
@@ -761,7 +761,7 @@ public:
|
||||
template<typename RegT, typename... Args>
|
||||
[[nodiscard]]
|
||||
ASMJIT_INLINE RegT new_reg(TypeId type_id, Args&&... args) noexcept {
|
||||
return cc->new_similar_reg<RegT>(type_id, std::forward<Args>(args)...);
|
||||
return cc->new_reg<RegT>(type_id, std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
//! Wraps `BackendCompiler::new_similar_reg(ref, args...)`.
|
||||
|
||||
Reference in New Issue
Block a user