Skip to content

Commit

Permalink
(#97) CodeGen: fix compilation after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Feb 17, 2022
1 parent 9574253 commit 559ca0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cesium.CodeGen/Ir/TopLevel/FunctionDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ private void EmitCode(TranslationUnitContext context, FunctionScope scope)
instructions.Add(Instruction.Create(OpCodes.Ldc_I4_0));
instructions.Add(Instruction.Create(OpCodes.Ret));
}
else if (_returnType.Resolve(context.TypeSystem) == context.TypeSystem.Void)
else if (_returnType.Resolve(context) == context.TypeSystem.Void)
{
var instructions = scope.Method.Body.Instructions;
instructions.Add(Instruction.Create(OpCodes.Ret));
Expand Down

0 comments on commit 559ca0a

Please sign in to comment.