[NFC][AMDGPU] Default initialize the Subtarget
authorJakub Chlanda <jakub@codeplay.com>
Mon, 17 Jul 2023 09:34:54 +0000 (11:34 +0200)
committerJakub Chlanda <jakub@codeplay.com>
Mon, 17 Jul 2023 09:39:29 +0000 (11:39 +0200)
commit3cd3f11c174baa001b337b88c7a6507eb5705cf2
tree0fa4d8e0504320f2007fbc9953385bfdac002c83
parentfaca9fdc4f79c24a51c585827de4c2d836c788fe
[NFC][AMDGPU] Default initialize the Subtarget

This is to address a static analizer warning:

The pointer field will point to an arbitrary memory location, any
attempt to write may cause corruption. In <unnamed>
R600DAGToDAGISel.:R600DAGToDAGISel (llvm::TargetMachine &,
livm::CodeGenOpt::Level): A pointer field is not initialized in the
constructor (CWE-457)

Differential Revision: https://reviews.llvm.org/D154414
llvm/lib/Target/AMDGPU/R600ISelDAGToDAG.cpp