[AST] Initialize local counter
authorVitaly Buka <vitalybuka@google.com>
Fri, 12 May 2023 22:20:58 +0000 (15:20 -0700)
committerVitaly Buka <vitalybuka@google.com>
Thu, 18 May 2023 08:19:11 +0000 (01:19 -0700)
commite8cd04624e503ae063e925eb5609281a88716d83
treef073fe7d4ecf0e45bb22d8de726073b8840f0728
parentfc89e9044d0b37dcd4e3f085f21bef1b21d2ab8d
[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
clang/lib/Frontend/ASTUnit.cpp