[all-commits] [llvm/llvm-project] 8826cd: [AST] Construct Capture objects before use

Vitaly Buka via All-commits all-commits at lists.llvm.org
Wed May 24 17:09:59 PDT 2023


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

  Changed paths:
    M clang/include/clang/AST/Stmt.h
    M clang/lib/AST/Stmt.cpp

  Log Message:
  -----------
  [AST] Construct Capture objects before use

Msan reports https://reviews.llvm.org/P8308
The reason is if PointerIntPair is not properly
constructed, setPointer uses Info::updatePointer
on uninitialized value.

Reviewed By: #clang, rsmith

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




More information about the All-commits mailing list