bin/llvm-as: alias2.ll:6:22: error: ‘%t1’ defined with type ‘%mytype = type { i32, i32 }’
store { i32, i32 } %t1, { i32, i32 }* %ptr
I don’t see anything in the language reference manual that disallows such usage, as the literal struct type and %mytype are equivalent. Am I missing something here, or is this just a bug in the assembly parser?
Alright, I misunderstood that statement then. This does seem to be inconsistent with llvm-link, though. If I have two identified structs in the same module, I cannot interchange them. But if they are in different modules, llvm-link will merge them: