Skip to content

Commit

Permalink
Fixes prototype of TypeSystem::inferBlock()
Browse files Browse the repository at this point in the history
Issue: #17
  • Loading branch information
0x7CFE committed May 31, 2016
1 parent 4d27f82 commit e08da8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/inference.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class TypeSystem {
typedef TSymbol* TSelector;

InferContext* inferMessage(TSelector selector, const Type& arguments);
InferContext* inferBlock(const Type& block, const Type& arguments);
BlockInferContext* inferBlock(const Type& block, const Type& arguments);

ControlGraph* getControlGraph(TMethod* method);

Expand Down
4 changes: 2 additions & 2 deletions src/TypeAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ void TypeAnalyzer::doPrimitive(const InstructionNode& instruction) {
if (instruction.getArgumentsCount() == 3)
arguments.pushSubType(m_context[*instruction.getArgument(2)]);

if (InferContext* invokeContext = m_system.inferBlock(block, arguments))
if (BlockInferContext* invokeContext = m_system.inferBlock(block, arguments))
primitiveResult = invokeContext->getReturnType();
else
primitiveResult = Type(Type::tkPolytype);
Expand Down Expand Up @@ -707,7 +707,7 @@ InferContext* TypeSystem::inferMessage(TSelector selector, const Type& arguments
return inferContext;
}

InferContext* TypeSystem::inferBlock(const Type& block, const Type& arguments) {
BlockInferContext* TypeSystem::inferBlock(const Type& block, const Type& arguments) {
if (block.getKind() != Type::tkMonotype || arguments.getSubTypes().empty())
return 0;

Expand Down

0 comments on commit e08da8d

Please sign in to comment.