Skip to content

Assembler should fail if input assigns to Id but instruction does not #2257

@dneto0

Description

@dneto0

For example, this should fail to assemble:

      %dud =  OpCopyMemory %2 %3

Instead I get a binary that looks like this:

$ od -t x4 a.spv
0000000 07230203 00010400 00070000 00000003
0000020 00000000 0003003f 00000001 00000002
0000040

and which disassembles to:

  OpCopyMemory %1 %2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions