[PATCH] D154414: [NFC][AMDGPU] Default initialize the Subtarget
Jakub Chlanda via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 4 01:22:20 PDT 2023
jchlanda created this revision.
jchlanda added reviewers: dfukalov, nickdesaulniers.
Herald added subscribers: foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl, arsenm.
Herald added a project: All.
jchlanda requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
This is to address a static analizer warning.
Repository:
rG LLVM Github Monorepo
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.536980.patch
Type: text/x-patch
Size: 516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230704/9484ced7/attachment.bin>
More information about the llvm-commits
mailing list