[clang] f01f2de - [CodeGen] Modernize CallArgList (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 20 09:43:13 PDT 2023


Author: Kazu Hirata
Date: 2023-08-20T09:42:59-07:00
New Revision: f01f2de5409dadec8a31e417fb183f222d3486f6

URL: https://github.com/llvm/llvm-project/commit/f01f2de5409dadec8a31e417fb183f222d3486f6
DIFF: https://github.com/llvm/llvm-project/commit/f01f2de5409dadec8a31e417fb183f222d3486f6.diff

LOG: [CodeGen] Modernize CallArgList (NFC)

Added: 
    

Modified: 
    clang/lib/CodeGen/CGCall.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGCall.h b/clang/lib/CodeGen/CGCall.h
index aab4a678e68e67..75c4dcc400caf0 100644
--- a/clang/lib/CodeGen/CGCall.h
+++ b/clang/lib/CodeGen/CGCall.h
@@ -256,7 +256,7 @@ struct CallArg {
 /// arguments in a call.
 class CallArgList : public SmallVector<CallArg, 8> {
 public:
-  CallArgList() : StackBase(nullptr) {}
+  CallArgList() = default;
 
   struct Writeback {
     /// The original argument.  Note that the argument l-value
@@ -362,7 +362,7 @@ class CallArgList : public SmallVector<CallArg, 8> {
   SmallVector<EndLifetimeInfo, 2> LifetimeCleanups;
 
   /// The stacksave call.  It dominates all of the argument evaluation.
-  llvm::CallInst *StackBase;
+  llvm::CallInst *StackBase = nullptr;
 };
 
 /// FunctionArgList - Type for representing both the decl and type


        


More information about the cfe-commits mailing list