[all-commits] [llvm/llvm-project] 3cd3f1: [NFC][AMDGPU] Default initialize the Subtarget

Jakub Chlanda via All-commits all-commits at lists.llvm.org
Mon Jul 17 02:39:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3cd3f11c174baa001b337b88c7a6507eb5705cf2
      https://github.com/llvm/llvm-project/commit/3cd3f11c174baa001b337b88c7a6507eb5705cf2
  Author: Jakub Chlanda <jakub at codeplay.com>
  Date:   2023-07-17 (Mon, 17 Jul 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/R600ISelDAGToDAG.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list