[all-commits] [llvm/llvm-project] bbe1b0: [NFC][CLANG] Fix static analyzer bugs about unnece...
smanna12 via All-commits
all-commits at lists.llvm.org
Fri Dec 22 18:39:36 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bbe1b06fbb7127d613cb4958e06c737967878388
https://github.com/llvm/llvm-project/commit/bbe1b06fbb7127d613cb4958e06c737967878388
Author: smanna12 <soumi.manna at intel.com>
Date: 2023-12-22 (Fri, 22 Dec 2023)
Changed paths:
M clang/lib/CodeGen/BackendUtil.cpp
Log Message:
-----------
[NFC][CLANG] Fix static analyzer bugs about unnecessary object copies with auto keyword (#75082)
Reported by Static Analyzer Tool:
In ​EmitAssemblyHelper::​RunOptimizationPipeline(): Using the auto
keyword without an & causes the copy of an object of type function.
/// List of pass builder callbacks ("CodeGenOptions.h").
std::vector<std::function<void(llvm::PassBuilder &)>>
PassBuilderCallbacks;
More information about the All-commits
mailing list