diff options
author | Valeriy Savchenko <vsavchenko@apple.com> | 2021-03-11 14:22:47 +0300 |
---|---|---|
committer | Valeriy Savchenko <vsavchenko@apple.com> | 2021-03-18 12:32:16 +0300 |
commit | 4a7afc9a8843f4793296a260f7153fd2ef4ec497 (patch) | |
tree | 426055254ca32ba37f16a40ccb138f1ed8cb1982 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 02834e1bd94602bb3d1c603fd9fb874eb0e75290 (diff) | |
download | llvm-4a7afc9a8843f4793296a260f7153fd2ef4ec497.zip llvm-4a7afc9a8843f4793296a260f7153fd2ef4ec497.tar.gz llvm-4a7afc9a8843f4793296a260f7153fd2ef4ec497.tar.bz2 |
[-Wcalled-once-parameter] Fix false positives for cleanup attr
Cleanup attribute allows users to attach a destructor-like functions
to variable declarations to be called whenever they leave the scope.
The logic of such functions is not supported by the Clang's CFG and
is too hard to be reasoned about. In order to avoid false positives
in this situation, we assume that we didn't see ALL of the executtion
paths of the function and, thus, can warn only about multiple call
violation.
rdar://74441906
Differential Revision: https://reviews.llvm.org/D98694
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions