Skip to content

Commit

Permalink
[CodeGen] Modernize NullReturnState (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 20, 2023
1 parent f01f2de commit 477457c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/CodeGen/CGObjCMac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1713,8 +1713,8 @@ class CGObjCNonFragileABIMac : public CGObjCCommonMac {
/// A helper class for performing the null-initialization of a return
/// value.
struct NullReturnState {
llvm::BasicBlock *NullBB;
NullReturnState() : NullBB(nullptr) {}
llvm::BasicBlock *NullBB = nullptr;
NullReturnState() = default;

/// Perform a null-check of the given receiver.
void init(CodeGenFunction &CGF, llvm::Value *receiver) {
Expand Down

0 comments on commit 477457c

Please sign in to comment.