Skip to content

Commit

Permalink
(ForNeVeR#354) FunctionType: add a TODO about the wide architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR authored and kant2002 committed Apr 11, 2023
1 parent b7aa5e0 commit e1106e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cesium.CodeGen/Ir/Types/FunctionType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public TypeReference Resolve(TranslationUnitContext context) =>

public TypeReference ResolvePointer(TranslationUnitContext context)
{
if (context.AssemblyContext.ArchitectureSet == TargetArchitectureSet.Wide)
throw new WipException(WipException.ToDo, $"Cannot resolve function pointer {this} in wide architecture.");

var pointer = new FunctionPointerType
{
ReturnType = ReturnType.Resolve(context)
Expand Down

0 comments on commit e1106e5

Please sign in to comment.