[all-commits] [llvm/llvm-project] bcf6f6: [mlir] Add workaround for false positive in -Wfree...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jul 21 16:16:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bcf6f641acdbeb208ea07a9e8ded37cd5b796d26
      https://github.com/llvm/llvm-project/commit/bcf6f641acdbeb208ea07a9e8ded37cd5b796d26
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

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

  Log Message:
  -----------
  [mlir] Add workaround for false positive in -Wfree-nonheap-object

Restore 499571ea835daf786626a0db1e12f890b6cd8f8d
reverted by 0082764605cc0e7e0363a41ffa77d214c3157aa6.

A compiler slightly older than
"[clang][Sema] removes -Wfree-nonheap-object reference param false positive"
may report the false positive.
We need to retain the workaround a bit longer so that such compilers
can be used to compile MLIR in a warning-free way.




More information about the All-commits mailing list