[all-commits] [llvm/llvm-project] 244dd2: Don't pass uninitialized QueryKind

Vitaly Buka via All-commits all-commits at lists.llvm.org
Fri Jan 7 17:14:29 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 244dd2913a43a200f5a6544d424cdc37b771028b
      https://github.com/llvm/llvm-project/commit/244dd2913a43a200f5a6544d424cdc37b771028b
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2022-01-07 (Fri, 07 Jan 2022)

  Changed paths:
    M clang-tools-extra/clangd/XRefs.cpp

  Log Message:
  -----------
  Don't pass uninitialized QueryKind

Even if findImplementors does not use
uninitialized parameter it's still UB and
it's going to be detected by msan with:
-Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1

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




More information about the All-commits mailing list