Fix #944: Convert argument type to match formal parameter type.

This commit is contained in:
John Kessenich
2018-05-04 11:43:03 -06:00
parent 25bef9300d
commit d3ed90be3a
5 changed files with 277 additions and 274 deletions

View File

@@ -258,7 +258,8 @@ public:
delete blocks[i];
}
Id getId() const { return functionInstruction.getResultId(); }
Id getParamId(int p) { return parameterInstructions[p]->getResultId(); }
Id getParamId(int p) const { return parameterInstructions[p]->getResultId(); }
Id getParamType(int p) const { return parameterInstructions[p]->getTypeId(); }
void addBlock(Block* block) { blocks.push_back(block); }
void removeBlock(Block* block)