[all-commits] [llvm/llvm-project] e30540: SampleProfileLoader::inlineHotFunctionsWithPriorit...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat May 15 07:03:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e30540a603ebc9ac4f1cd0c1e94a0755b10ec25f
      https://github.com/llvm/llvm-project/commit/e30540a603ebc9ac4f1cd0c1e94a0755b10ec25f
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-05-15 (Sat, 15 May 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/SampleProfile.cpp

  Log Message:
  -----------
  SampleProfileLoader::inlineHotFunctionsWithPriority - Fix uninitialized variable warning. NFCI.

findIndirectCallFunctionSamples will leave Sum uninitialized if it returns an empty vector, we don't really use Sum in this case (but we do make a copy that isn't used either) - so ensure we initialize the value to zero to at least silence the static analysis warning.




More information about the All-commits mailing list