This is an archive of the discontinued LLVM Phabricator instance.

[DebugLocEntry][nfc] Remove redundant cast
ClosedPublic

Authored by fdeazeve on Apr 25 2023, 12:09 PM.

Details

Summary

A cast from DIExpression->DIExpression is not needed.

Diff Detail

Event Timeline

fdeazeve created this revision.Apr 25 2023, 12:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 12:09 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
fdeazeve requested review of this revision.Apr 25 2023, 12:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 12:09 PM
fdeazeve edited reviewers, added: StephenTozer; removed: aprantl.Apr 25 2023, 12:09 PM

@StephenTozer I know the code was already there prior to a change you made in this file, but since you were the last person to move this code around, I figured I'd tag you here :)

aprantl accepted this revision.Apr 25 2023, 1:32 PM
aprantl added a subscriber: aprantl.

I guess this would produce a different assertion if someone had reinterpreted_casted a wrong pointer before passing it in, but I don't think this is a good enough reason to keep this.

This revision is now accepted and ready to land.Apr 25 2023, 1:32 PM
This revision was landed with ongoing or failed builds.Apr 26 2023, 4:56 AM
This revision was automatically updated to reflect the committed changes.