arcana-lab / memoir

A case for representing data collections and objects in the LLVM IR
MIT License
12 stars 2 forks source link

Struct Access Assertion Failure #47

Closed peteryongzhong closed 1 year ago

peteryongzhong commented 1 year ago

In Commit: bc1e3efb289e86214c843e71217296208e836540

There is a test that just loops through the instructions, grabs the analysis content and does essentially nops:

https://github.com/arcana-lab/memoir/blob/bc1e3efb289e86214c843e71217296208e836540/compiler/passes/object_lowering/src/ObjectLowering.cpp#L53

However, running against test: https://github.com/arcana-lab/memoir/blob/bc1e3efb289e86214c843e71217296208e836540/tests/unit/struct_ref/main.cpp

The following error has occurred as shown in the print out:

image
tommymcm commented 1 year ago

This is fixed with 336b7a9b765501c1c437e4c0342a22cbeecb64c6