Browse Source

Rename BNOT -> NOT, NOT -> ISZERO

cl-refactor
Paweł Bylica 10 years ago
parent
commit
c91c5df4f6
  1. 4
      libevmjit/Compiler.cpp

4
libevmjit/Compiler.cpp

@ -342,7 +342,7 @@ void Compiler::compileBasicBlock(BasicBlock& _basicBlock, bytesConstRef _bytecod
break; break;
} }
case Instruction::BNOT: case Instruction::NOT:
{ {
auto value = stack.pop(); auto value = stack.pop();
auto ret = m_builder.CreateXor(value, Constant::get(-1), "bnot"); auto ret = m_builder.CreateXor(value, Constant::get(-1), "bnot");
@ -400,7 +400,7 @@ void Compiler::compileBasicBlock(BasicBlock& _basicBlock, bytesConstRef _bytecod
break; break;
} }
case Instruction::NOT: case Instruction::ISZERO:
{ {
auto top = stack.pop(); auto top = stack.pop();
auto iszero = m_builder.CreateICmpEQ(top, Constant::get(0), "iszero"); auto iszero = m_builder.CreateICmpEQ(top, Constant::get(0), "iszero");

Loading…
Cancel
Save