-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[CodeGen] Use OwningArrayRef in NodeMetadata (NFC) #137539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CodeGen] Use OwningArrayRef in NodeMetadata (NFC) #137539
Conversation
NodeMetadata::optUnsafeEdges returns ArrayRef, packaging OptUnsafeEdges and NumOpts. This in turn allows use of llvm::copy and llvm::is_contained elsewhere in the class.
nikic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we replace the member with OwningArrayRef instead?
I don't think so. The array could be reallocated in the middle of lifetime: |
OwningArrayRef has operator= so I think that should be ok? |
You are right. I now use |
nikic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/10904 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/94/builds/6611 Here is the relevant piece of the build log for the reference |
|
Can you check if the PR breaks the following buildbot |
|
From the buildbot log: |
Reverts #137539 This breaks the MSan buildbot. Please either fix the build or merge this revert.
) Reverts llvm#137539 This breaks the MSan buildbot. Please either fix the build or merge this revert.
…" (#137684) Reverts llvm/llvm-project#137539 This breaks the MSan buildbot. Please either fix the build or merge this revert.
) Reverts llvm#137539 This breaks the MSan buildbot. Please either fix the build or merge this revert.
No description provided.