aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2022-02-12 19:59:13 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2022-02-12 19:59:30 +0000
commit5d1e3ed3e257535fbd51706023685d2c2d9eba51 (patch)
treea7b95a409aa79e432554f433d9afa51ec7f6c5f0 /llvm/lib/Object/MachOObjectFile.cpp
parenta0e8077d285ad35578677e3e03375cb9f1208e36 (diff)
downloadllvm-5d1e3ed3e257535fbd51706023685d2c2d9eba51.zip
llvm-5d1e3ed3e257535fbd51706023685d2c2d9eba51.tar.gz
llvm-5d1e3ed3e257535fbd51706023685d2c2d9eba51.tar.bz2
[clang-tidy] SimplifyBooleanExprCheck - use cast<> instead of dyn_cast<> to avoid dereference of nullptr
The IfStmt pointer is always referenced inside the replaceCompoundReturnWithCondition call, so assert the cast is correct instead of returning nullptr
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions