[all-commits] [llvm/llvm-project] 1d9086: Fix use of uninitialized member in constructor
Sven van Haastregt via All-commits
all-commits at lists.llvm.org
Thu Jul 7 04:09:36 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1d9086bf054c2e734940620d02d4451156b424e6
https://github.com/llvm/llvm-project/commit/1d9086bf054c2e734940620d02d4451156b424e6
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2022-07-07 (Thu, 07 Jul 2022)
Changed paths:
M llvm/include/llvm/IR/ModuleSummaryIndex.h
Log Message:
-----------
Fix use of uninitialized member in constructor
The constructor does `Saver(Alloc)`, so `Alloc` should be
initialized first. Move `Alloc` up in the declaration order.
Fixes a -Wuninitialized warning when building with GCC 12.1.
Reported-by: Mihail Atanassov <mihail.atanassov at arm.com>
More information about the All-commits
mailing list