Skip to content

Work Graphs: [Empty]NodeOutputArray subscript operator should not return reference type #5358

Closed

Description

@llvm-beanz

The subscript operator for NodeOutputArray and EmptyNodeOutputArray return a reference type to the NodeOutput or EmptyNodeOutput object. This should not be a reference, but a value instead. This interacts with #5357, because it prevents the type annotation from being created for the NodeOutput or EmptyNodeOutput type.

Activity

  1. moved this from 🆕 New to 🏗 In progress in HLSL Roadmapon Jan 24, 2024
  2. llvm-beanz commented on Jan 24, 2024

    @llvm-beanz
    CollaboratorAuthor

    It looks like [Empty]NodeOutputArray's AST is correct and does not return references from the subscript operator. We don't have tests for [Empty]NodeOutputArray's AST, so we should add those, but otherwise there is nothing to do here.

  3. pow2clk commented on Jan 24, 2024

    @pow2clk
    Collaborator

    It seems this got fixed along the way without referencing this bug. I've created #6199 for the tests Chris requested. As such, there's nothing left here. Closing.

  4. moved this from 🏗 In progress to ✅ Done in HLSL Roadmapon Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions