Program.declarations
should be empty after copy_everything_except_instructions()
#1613
Labels
bug 🐛
An issue that needs fixing.
Issue Description
In #1611 we discovered that
Program.declarations
should be treated as a view onProgram.instructions
, else there can be inconsistencies that cause troubles with some workflows. The implementation ofProgram.copy_everything_except_instructions()
does not preserve this- it copiesdeclarations
but notinstructions
. Thedeclarations
member should also not be copied.The text was updated successfully, but these errors were encountered: