Skip to content

Commit

Permalink
Merge pull request #1274 from ptomin/mark-type-as-user-defined-when-r…
Browse files Browse the repository at this point in the history
…esolving-pointers

Mark type as user-defined when resolving pointers at intrincic procedures
  • Loading branch information
uxmal authored Jul 29, 2023
2 parents 14e446b + 3698fd7 commit c5ee644
Show file tree
Hide file tree
Showing 5 changed files with 204,465 additions and 204,020 deletions.
4 changes: 2 additions & 2 deletions src/Core/IntrinsicProcedure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public IntrinsicProcedure ResolvePointers(int ptrSize)
FunctionType newSig;
if (sig.HasVoidReturn)
{
newSig = FunctionType.Action(parameters);
newSig = FunctionType.CreateUserDefined(null, parameters);
}
else
{
Expand All @@ -215,7 +215,7 @@ public IntrinsicProcedure ResolvePointers(int ptrSize)
ResolvePointer(ret.DataType, ptr.Pointee, ptrSize),
ret.Storage);
}
newSig = FunctionType.Func(ret, parameters);
newSig = FunctionType.CreateUserDefined(ret, parameters);
}
return new IntrinsicProcedure(this.Name, this.HasSideEffect, newSig)
{
Expand Down
Loading

0 comments on commit c5ee644

Please sign in to comment.