I'm trying to implement small buffer optimization. To do this, I have a pointer which can point to some stack allocated data, but can also point to the heap. To know if we need to free at the end, we verify that the pointer does not point to the stack allocated array. This doesn't cause issue in normal settings (the whole test suite of the stdlib in https://github.com/modularml/mojo/pull/2613 is passing with all buffer sizes from 0 to 10 so I'm pretty confident here). But is causes issues when materializing the type.
Bug description
I'm trying to implement small buffer optimization. To do this, I have a pointer which can point to some stack allocated data, but can also point to the heap. To know if we need to free at the end, we verify that the pointer does not point to the stack allocated array. This doesn't cause issue in normal settings (the whole test suite of the stdlib in https://github.com/modularml/mojo/pull/2613 is passing with all buffer sizes from 0 to 10 so I'm pretty confident here). But is causes issues when materializing the type.
This is blocking for https://github.com/modularml/mojo/issues/2467
Steps to reproduce
System information