You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently do not have a validation in place to safeguard against initializing a variable with __VOID. Since the void type does not exist outside of return-types in LLVM, the variable's type is then changed to i32 during codegen.
I think it would make sense to disallow using the type in user code in general, especially seeing as it is prefixed with __.
FUNCTION_BLOCK foo
VAR
x : __VOID;
END_VAR
END_FUNCTION_BLOCK
...
%foo = type { i32 }
The text was updated successfully, but these errors were encountered:
We currently do not have a validation in place to safeguard against initializing a variable with
__VOID
. Since thevoid
type does not exist outside of return-types in LLVM, the variable's type is then changed toi32
during codegen.I think it would make sense to disallow using the type in user code in general, especially seeing as it is prefixed with
__
....
The text was updated successfully, but these errors were encountered: