LensPlaysGames/LensorCompilerCollection

IR_PARAMETER causes crash with `-f ir` command line flags

LensPlaysGames opened this issue · 2 comments

https://github.com/LensPlaysGames/FUNCompiler/blob/103aee3d2d27aeee5594e2e9a93475fbf4d7dda7/src/codegen/intermediate_representation.c#L257-L259

Is this still correct? Do parameters still reference in this way? I'm not thinking too hard about it right now, but this seems like a result of changing PARAMETER_REFERENCE into PARAMETER.

This should not be a thing anymore

And the reason why this fails is because instruction->value.reference is NULL because it’s never set