diff options
author | Oleksandr "Alex" Zinenko <zinenko@google.com> | 2023-12-21 17:58:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 17:58:53 +0100 |
commit | 11140cc238b8c4124e6f9efacb1601f81da096a0 (patch) | |
tree | adbd73e221528c6b5409d730c39ba8bc5cf78d62 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 72003adf6bd44e91778c22e42e94a28c28be2339 (diff) | |
download | llvm-11140cc238b8c4124e6f9efacb1601f81da096a0.zip llvm-11140cc238b8c4124e6f9efacb1601f81da096a0.tar.gz llvm-11140cc238b8c4124e6f9efacb1601f81da096a0.tar.bz2 |
[mlir] mark ChangeResult as nodiscard (#76147)
This enum is used by dataflow analyses to indicate whether further
propagation is necessary to reach the fix point. Accidentally discarding
such a value will likely lead to propagation stopping early, leading to
incomplete or incorrect results. The most egregious example is the
duality between `join` on the analysis class, which triggers propagation
internally, and `join` on the lattice class that does not and expects
the caller to trigger it depending on the returned `ChangeResult`.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions