This is an archive of the discontinued LLVM Phabricator instance.

[clang-format][NFC] Reorder conditions
ClosedPublic

Authored by HazardyKnusperkeks on Dec 3 2021, 11:56 AM.

Details

Summary

Prefer to check the local variables first before dereferencing the pointer.

Diff Detail

Event Timeline

HazardyKnusperkeks requested review of this revision.Dec 3 2021, 11:56 AM
HazardyKnusperkeks created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 3 2021, 11:56 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
curdeius accepted this revision.Dec 3 2021, 12:51 PM

LGTM.

This revision is now accepted and ready to land.Dec 3 2021, 12:51 PM
owenpan accepted this revision.Dec 3 2021, 5:49 PM
This revision was automatically updated to reflect the committed changes.