Fixed a bug introduced by a previous commit

This commit is contained in:
kobalicek
2017-03-09 17:07:24 +01:00
parent e8a80ea958
commit 3f4bb2ba0e
2 changed files with 2 additions and 2 deletions

View File

@@ -508,7 +508,7 @@ public:
ASMJIT_INLINE void delOptions(uint32_t options) noexcept { _instDetail.options &= ~options; } ASMJIT_INLINE void delOptions(uint32_t options) noexcept { _instDetail.options &= ~options; }
//! Get if the node has an extra register operand. //! 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. //! Get extra register operand.
ASMJIT_INLINE RegOnly& getExtraReg() noexcept { return _instDetail.extraReg; } ASMJIT_INLINE RegOnly& getExtraReg() noexcept { return _instDetail.extraReg; }
//! \overload //! \overload

View File

@@ -2420,7 +2420,7 @@ Error X86VarAlloc::run(CBNode* node_) {
// Translate node operands. // Translate node operands.
if (node_->getType() == CBNode::kNodeInst) { if (node_->getType() == CBNode::kNodeInst) {
CBInst* node = static_cast<CBInst*>(node_); CBInst* node = static_cast<CBInst*>(node_);
if (node->hasExtraOp()) { if (node->hasExtraReg()) {
Reg reg = node->getExtraReg().toReg<Reg>(); Reg reg = node->getExtraReg().toReg<Reg>();
ASMJIT_PROPAGATE(X86RAPass_translateOperands(_context, &reg, 1)); ASMJIT_PROPAGATE(X86RAPass_translateOperands(_context, &reg, 1));
node->setExtraReg(reg); node->setExtraReg(reg);