[all-commits] [llvm/llvm-project] e09772: [clang-tidy] Fix crash on "reference-to-array" par...
Whisperity via All-commits
all-commits at lists.llvm.org
Thu Aug 5 10:16:49 PDT 2021
Branch: refs/heads/release/13.x
Home: https://github.com/llvm/llvm-project
Commit: e097724cb9efbc3a068767ecf264897e97b2e109
https://github.com/llvm/llvm-project/commit/e097724cb9efbc3a068767ecf264897e97b2e109
Author: Whisperity <whisperity at gmail.com>
Date: 2021-08-05 (Thu, 05 Aug 2021)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/EasilySwappableParametersCheck.cpp
M clang-tools-extra/test/clang-tidy/checkers/bugprone-easily-swappable-parameters-implicits.cpp
M clang-tools-extra/test/clang-tidy/checkers/bugprone-easily-swappable-parameters-len2.cpp
Log Message:
-----------
[clang-tidy] Fix crash on "reference-to-array" parameters in 'bugprone-easily-swappable-parameters'
An otherwise unexercised code path related to trying to model
"array-to-pointer decay" resulted in a null pointer dereference crash
when parameters of type "reference to array" were encountered.
Fixes crash report http://bugs.llvm.org/show_bug.cgi?id=50995.
Reviewed By: aaron.ballman
Differential Revision: http://reviews.llvm.org/D106946
(cherry picked from commit 21832121e112d97f1e197b35959867f3a99226ee)
More information about the All-commits
mailing list