[clang][Sema] removes -Wfree-nonheap-object reference param false positive
authorChristopher Di Bella <cjdb@google.com>
Tue, 13 Jul 2021 02:02:17 +0000 (02:02 +0000)
committerChristopher Di Bella <cjdb@google.com>
Wed, 21 Jul 2021 21:30:16 +0000 (21:30 +0000)
commit9a72580a548da8008dca479ec50e4eb75e56db71
tree63c40b7211b08b435f9e7cd5775e992f44030e3b
parent9625ca5b602616b2f5584e8a49ba93c52c141e40
[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
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/warn-free-nonheap-object.cpp