diff options
| author | Piotr Zegar <me@piotrzegar.pl> | 2023-03-29 15:24:54 +0000 |
|---|---|---|
| committer | Piotr Zegar <me@piotrzegar.pl> | 2023-03-29 16:08:54 +0000 |
| commit | 498c88563b7f6379d9e6ae4d89d182756fa1c0bc (patch) | |
| tree | 5c520c9c3ac88fc3b94848aa9a490baa2db85855 /llvm/lib/CodeGen/DFAPacketizer.cpp | |
| parent | 270067d69532448c4f6d7956e68d7a392857f9ce (diff) | |
| download | llvm-498c88563b7f6379d9e6ae4d89d182756fa1c0bc.zip llvm-498c88563b7f6379d9e6ae4d89d182756fa1c0bc.tar.gz llvm-498c88563b7f6379d9e6ae4d89d182756fa1c0bc.tar.bz2 | |
[clang-tidy] Fix if-constexpr false-positive in readability-misleading-indentation
When depend on template parameter,
compiler can use NullStmt instead of CompoundStmt.
This causes issues as we losing information about
end location of that Stmt. To avoid this issue
check now ignores ifStmt with NullStmt on true-branch.
Fixes: https://github.com/llvm/llvm-project/issues/61435
Reviewed By: carlosgalvezp
Differential Revision: https://reviews.llvm.org/D146887
Diffstat (limited to 'llvm/lib/CodeGen/DFAPacketizer.cpp')
0 files changed, 0 insertions, 0 deletions
