Hello, I have a problem when I try to use your open source project. Here is the source for testing.
class SimStream {
public:
int n;
double a;
char b;
SimStream() {
n = 0;
}
SimStream(double _a) {
a = _a;
}
SimStream(int _n , double _a){
n = _n; a = _a;
}
~SimStream() { printf("---------------------------------------1\n"); };
};
void doSomeThing(SimStream *t) {};
int main() {
SimStream *s = new SimStream;
doSomeThing(s);
delete s;
return 0;
}
It seems that custom destructor not called. When I delete a class,there are only memref.dealloc %alloc : memref<1x!llvm.struct<(i32, f64, i8)>> and not anything about user-defined destructor function.
I don't know what the problem is. If you can answer it, I'd appreciate it.
Hello, I have a problem when I try to use your open source project. Here is the source for testing.
It seems that custom destructor not called. When I delete a class,there are only
memref.dealloc %alloc : memref<1x!llvm.struct<(i32, f64, i8)>>
and not anything about user-defined destructor function. I don't know what the problem is. If you can answer it, I'd appreciate it.