[all-commits] [llvm/llvm-project] c86dac: [-Wcalled-once-parameter] Let escapes overwrite Ma...

Valeriy Savchenko via All-commits all-commits at lists.llvm.org
Wed Mar 17 01:13:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c86dacd1a4489572721dec3135506d31da96c679
      https://github.com/llvm/llvm-project/commit/c86dacd1a4489572721dec3135506d31da96c679
  Author: Valeriy Savchenko <vsavchenko at apple.com>
  Date:   2021-03-17 (Wed, 17 Mar 2021)

  Changed paths:
    M clang/lib/Analysis/CalledOnceCheck.cpp
    M clang/test/SemaObjC/warn-called-once.m

  Log Message:
  -----------
  [-Wcalled-once-parameter] Let escapes overwrite MaybeCalled states

This commit makes escapes symmetrical, meaning that having escape
before and after the branching, where parameter is not called on
one of the paths, will have the same effect.

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




More information about the All-commits mailing list