[all-commits] [llvm/llvm-project] 048f53: [Hexagon] Fix -Wuninitialized warning (#125565)

Brian Cain via All-commits all-commits at lists.llvm.org
Tue Feb 4 20:11:37 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 048f533244d537a1451ab2d2979faa762252d37d
      https://github.com/llvm/llvm-project/commit/048f533244d537a1451ab2d2979faa762252d37d
  Author: Brian Cain <brian.cain at oss.qualcomm.com>
  Date:   2025-02-04 (Tue, 04 Feb 2025)

  Changed paths:
    M llvm/lib/Target/Hexagon/BitTracker.h

  Log Message:
  -----------
  [Hexagon] Fix -Wuninitialized warning (#125565)

`gcc (GCC) 14.2.1 20240910` reports the warning below on the baseline,
this change fixes the warning.

In file included from
/home/user/CLionProjects/llvm-project/llvm/lib/Target/Hexagon/BitTracker.cpp:55:

/home/user/CLionProjects/llvm-project/llvm/lib/Target/Hexagon/BitTracker.h:
In constructor ‘llvm::BitTracker::UseQueueType::UseQueueType()’:

/home/user/CLionProjects/llvm-project/llvm/lib/Target/Hexagon/BitTracker.h:75:27:
warning: member ‘llvm::BitTracker::UseQueueType::Dist’ is used
uninitialized [-Wuninitialized]
       75 |     UseQueueType() : Uses(Dist) {}
          |                           ^~~~

Fixes #125545



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list