[PATCH] D103751: [Polly][Isl] Removing nullptr constructor from C++ bindings. NFC.

Riccardo Mori via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 8 13:58:10 PDT 2021


patacca updated this revision to Diff 350710.
patacca added a comment.
Herald added subscribers: kbarton, nemanjai.

Replacing calls to nullptr constructor of isl::schedule to the default constructor


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103751/new/

https://reviews.llvm.org/D103751

Files:
  polly/lib/CodeGen/PPCGCodeGeneration.cpp


Index: polly/lib/CodeGen/PPCGCodeGeneration.cpp
===================================================================
--- polly/lib/CodeGen/PPCGCodeGeneration.cpp
+++ polly/lib/CodeGen/PPCGCodeGeneration.cpp
@@ -178,7 +178,7 @@
   /// [params] -> { Stmt_phantom[]  -> scalar_to_kill[] }
   isl::union_map MustKills;
 
-  MustKillsInfo() : KillsSchedule(nullptr) {}
+  MustKillsInfo() : KillsSchedule() {}
 };
 
 /// Check if SAI's uses are entirely contained within Scop S.
@@ -227,7 +227,7 @@
   //     - filter: "[control] -> { }"
   // So, we choose to not create this to keep the output a little nicer,
   // at the cost of some code complexity.
-  Info.KillsSchedule = nullptr;
+  Info.KillsSchedule = {};
 
   for (isl::id &ToKillId : KillMemIds) {
     isl::id KillStmtId = isl::id::alloc(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103751.350710.patch
Type: text/x-patch
Size: 795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210608/78796858/attachment.bin>


More information about the llvm-commits mailing list