[all-commits] [llvm/llvm-project] e8cd04: [AST] Initialize local counter

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu May 18 01:19:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8cd04624e503ae063e925eb5609281a88716d83
      https://github.com/llvm/llvm-project/commit/e8cd04624e503ae063e925eb5609281a88716d83
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2023-05-18 (Thu, 18 May 2023)

  Changed paths:
    M clang/lib/Frontend/ASTUnit.cpp

  Log Message:
  -----------
  [AST] Initialize local counter

I assume it's optional and ReadAST does not have to set the
counter on success.

Without the patch msan complains that we pass
uninitialized value into noundef parameters of setCounterValue.

Reviewed By: bnbarham, barannikov88

Differential Revision: https://reviews.llvm.org/D150492




More information about the All-commits mailing list