Rename BNOT -> NOT, NOT -> ISZERO

This commit is contained in:
Paweł Bylica 2014-10-31 16:59:21 +01:00
parent 29432beef8
commit c91c5df4f6

View file

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