This is an archive of the discontinued LLVM Phabricator instance.

[Clang][CGM] style cleanups NFC
ClosedPublic

Authored by nickdesaulniers on May 29 2020, 2:03 PM.

Details

Summary

Forked from:
https://reviews.llvm.org/D80242

Use the getter for access to DebugInfo consistently.
Use break in switch in CodeGenModule::EmitTopLevelDecl consistently.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2020, 2:03 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
dblaikie accepted this revision.May 29 2020, 2:57 PM

Sounds good - thanks!

This revision is now accepted and ready to land.May 29 2020, 2:57 PM
  • add missed {, actually compile test and check all
nickdesaulniers marked an inline comment as done.May 29 2020, 3:54 PM
nickdesaulniers added inline comments.
clang/lib/CodeGen/CodeGenModule.cpp
5374

missed a {...

  • actually, braces were unnecessary

I've learned the hard way not to commit code Friday >4pm. Will land Monday.

This revision was automatically updated to reflect the committed changes.