Skip to content

Commit

Permalink
Folds argument types of SendBinary instruction
Browse files Browse the repository at this point in the history
Issue: #17
Issue: #92
  • Loading branch information
0x7CFE committed Jul 25, 2016
1 parent 206db1c commit 33f4452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MethodCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1303,9 +1303,9 @@ void MethodCompiler::setNodeValue(TJITContext& jit, st::ControlNode* node, llvm:

void MethodCompiler::doSendBinary(TJITContext& jit)
{
const type::Type& leftType = jit.inferContext[*jit.currentNode->getArgument(0)];
const type::Type& rightType = jit.inferContext[*jit.currentNode->getArgument(1)];
const type::Type& resultType = jit.inferContext[*jit.currentNode];
const type::Type& leftType = jit.inferContext[*jit.currentNode->getArgument(0)].fold();
const type::Type& rightType = jit.inferContext[*jit.currentNode->getArgument(1)].fold();
const type::Type& resultType = jit.inferContext[*jit.currentNode].fold();

if (leftType.isLiteral() && rightType.isLiteral()) {
// TODO Extend to all literals
Expand Down

0 comments on commit 33f4452

Please sign in to comment.