mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 04:24:37 +03:00
Fixed a bug introduced by a previous commit
This commit is contained in:
@@ -508,7 +508,7 @@ public:
|
||||
ASMJIT_INLINE void delOptions(uint32_t options) noexcept { _instDetail.options &= ~options; }
|
||||
|
||||
//! Get if the node has an extra register operand.
|
||||
ASMJIT_INLINE bool hasExtraOp() const noexcept { return !_instDetail.hasExtraReg(); }
|
||||
ASMJIT_INLINE bool hasExtraReg() const noexcept { return _instDetail.hasExtraReg(); }
|
||||
//! Get extra register operand.
|
||||
ASMJIT_INLINE RegOnly& getExtraReg() noexcept { return _instDetail.extraReg; }
|
||||
//! \overload
|
||||
|
||||
@@ -2420,7 +2420,7 @@ Error X86VarAlloc::run(CBNode* node_) {
|
||||
// Translate node operands.
|
||||
if (node_->getType() == CBNode::kNodeInst) {
|
||||
CBInst* node = static_cast<CBInst*>(node_);
|
||||
if (node->hasExtraOp()) {
|
||||
if (node->hasExtraReg()) {
|
||||
Reg reg = node->getExtraReg().toReg<Reg>();
|
||||
ASMJIT_PROPAGATE(X86RAPass_translateOperands(_context, ®, 1));
|
||||
node->setExtraReg(reg);
|
||||
|
||||
Reference in New Issue
Block a user