aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ExpandVectorPredication.cpp
diff options
context:
space:
mode:
authorEmilia Dreamer <emilia@rymiel.space>2022-10-05 09:37:53 +0300
committerEmilia Dreamer <emilia@rymiel.space>2022-10-05 09:38:05 +0300
commit2d149d17f069e671e064a000cb038590f4fc5303 (patch)
tree0411819293060ff922b3a76a3540d743e27b36af /llvm/lib/CodeGen/ExpandVectorPredication.cpp
parentd330731f94c4ffedc2250933f7d467bf658603d6 (diff)
downloadllvm-2d149d17f069e671e064a000cb038590f4fc5303.zip
llvm-2d149d17f069e671e064a000cb038590f4fc5303.tar.gz
llvm-2d149d17f069e671e064a000cb038590f4fc5303.tar.bz2
[clang-tidy] Fix crashes on `if consteval` in readability checks
The `readability-braces-around-statements` check tries to look at the closing parens of the if condition to determine where to insert braces, however, "consteval if" statements don't have a condition, and always have braces regardless, so the skip can be checked. The `readability-simplify-boolean-expr` check looks at the condition of the if statement to determine what could be simplified, but as "consteval if" statements do not have a condition that could be simplified, they can also be skipped here. There may still be more checks that try to look at the conditions of `if`s that aren't included here Fixes https://github.com/llvm/llvm-project/issues/57568 Reviewed By: njames93, aaron.ballman Differential Revision: https://reviews.llvm.org/D133413
Diffstat (limited to 'llvm/lib/CodeGen/ExpandVectorPredication.cpp')
0 files changed, 0 insertions, 0 deletions