[PATCH] D154414: [NFC][AMDGPU] Default initialize the Subtarget

Jakub Chlanda via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 02:39:42 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG3cd3f11c174b: [NFC][AMDGPU] Default initialize the Subtarget (authored by jchlanda).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154414

Files:
  llvm/lib/Target/AMDGPU/R600ISelDAGToDAG.cpp


Index: llvm/lib/Target/AMDGPU/R600ISelDAGToDAG.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/R600ISelDAGToDAG.cpp
+++ llvm/lib/Target/AMDGPU/R600ISelDAGToDAG.cpp
@@ -20,7 +20,7 @@
 
 namespace {
 class R600DAGToDAGISel : public AMDGPUDAGToDAGISel {
-  const R600Subtarget *Subtarget;
+  const R600Subtarget *Subtarget = nullptr;
 
   bool isConstantLoad(const MemSDNode *N, int cbID) const;
   bool SelectGlobalValueConstantOffset(SDValue Addr, SDValue &IntPtr);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154414.540920.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230717/e941f1d0/attachment.bin>


More information about the llvm-commits mailing list