This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][NFC] Fix a incorrect use of shared_ptr in RenderScriptRuntime.cpp
ClosedPublic

Authored by xgupta on Jan 22 2023, 8:58 AM.

Diff Detail

Event Timeline

xgupta created this revision.Jan 22 2023, 8:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 22 2023, 8:58 AM
xgupta requested review of this revision.Jan 22 2023, 8:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 22 2023, 8:58 AM
jingham requested changes to this revision.Jan 23 2023, 6:01 PM

I don't think this code is going to compile, is it? You took out the if (!buffer) { but left the RHS } so now the scopes are unbalanced. I think you should just change how the shared pointer is defined - which is presumably the substance of the patch - and leave everything after as is.

This revision now requires changes to proceed.Jan 23 2023, 6:01 PM
xgupta updated this revision to Diff 491597.Jan 23 2023, 9:14 PM

address comments

I don't think this code is going to compile, is it? You took out the if (!buffer) { but left the RHS } so now the scopes are unbalanced. I think you should just change how the shared pointer is defined - which is presumably the substance of the patch - and leave everything after as is.

Yeah, correct, I didn't notice carefully. Thanks.

LGTM, but I wonder when we'll be able to get rid of RenderScript completely (CC @labath)

xgupta updated this revision to Diff 491601.Jan 23 2023, 9:56 PM

fix build

xgupta added a comment.Feb 3 2023, 2:46 AM

LGTM, but I wonder when we'll be able to get rid of RenderScript completely (CC @labath)

@JDevlieghere, Shall I commit the changes after running check-lldb?

labath added a subscriber: srhines.Feb 3 2023, 4:14 AM

LGTM, but I wonder when we'll be able to get rid of RenderScript completely (CC @labath)

I am not going to stand in your way. I usually redirect these questions to @srhines, but I understand he's moved on to other things as well.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 6 2023, 8:38 AM
This revision was automatically updated to reflect the committed changes.
xgupta added a comment.Feb 6 2023, 9:21 AM

LGTM, but I wonder when we'll be able to get rid of RenderScript completely (CC @labath)

I am not going to stand in your way. I usually redirect these questions to @srhines, but I understand he's moved on to other things as well.

Thanks, no problem.

LGTM, but I wonder when we'll be able to get rid of RenderScript completely (CC @labath)

I am not going to stand in your way. I usually redirect these questions to @srhines, but I understand he's moved on to other things as well.

Thanks, no problem.

RenderScript support can be removed. I don't necessarily have the bandwidth to do it immediately, but if someone wants to clean that up, I'd help with reviewing.