[all-commits] [llvm/llvm-project] 9a7258: [clang][Sema] removes -Wfree-nonheap-object refere...

Christopher Di Bella via All-commits all-commits at lists.llvm.org
Wed Jul 21 14:30:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a72580a548da8008dca479ec50e4eb75e56db71
      https://github.com/llvm/llvm-project/commit/9a72580a548da8008dca479ec50e4eb75e56db71
  Author: Christopher Di Bella <cjdb at google.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/Sema/warn-free-nonheap-object.cpp

  Log Message:
  -----------
  [clang][Sema] removes -Wfree-nonheap-object reference param false positive

Taking the address of a reference parameter might be valid, and without
CFA, false positives are going to be more trouble than they're worth.

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


  Commit: 0082764605cc0e7e0363a41ffa77d214c3157aa6
      https://github.com/llvm/llvm-project/commit/0082764605cc0e7e0363a41ffa77d214c3157aa6
  Author: Christopher Di Bella <cjdb at google.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M mlir/lib/IR/OperationSupport.cpp

  Log Message:
  -----------
  Revert "Add workaround for false positive in -Wfree-nonheap-object"

This reverts commit 499571ea835daf786626a0db1e12f890b6cd8f8d.


Compare: https://github.com/llvm/llvm-project/compare/9625ca5b6026...0082764605cc


More information about the All-commits mailing list