aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorBalazs Benics <balazs.benics@sigmatechnology.se>2022-06-15 16:50:12 +0200
committerBalazs Benics <balazs.benics@sigmatechnology.se>2022-06-15 16:50:12 +0200
commit6c4f9998ae383d69e97a0d977585f2cb55ff92ed (patch)
tree6e6d8158326c35e2384c80a31068fb77ab185d07 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parentf1b18a79b7f4c81ef67e83f5d1a02ded139df02d (diff)
downloadllvm-6c4f9998ae383d69e97a0d977585f2cb55ff92ed.zip
llvm-6c4f9998ae383d69e97a0d977585f2cb55ff92ed.tar.gz
llvm-6c4f9998ae383d69e97a0d977585f2cb55ff92ed.tar.bz2
[analyzer] Fix StreamErrorState hash bug
The `Profile` function was incorrectly implemented. The `StreamErrorState` has an implicit `bool` conversion operator, which will result in a different hash than faithfully hashing the raw value of the enum. I don't have a test for it, since it seems difficult to find one. Even if we would have one, any change in the hashing algorithm would have a chance of breaking it, so I don't think it would justify the effort. Depends on D127836, which uncovered this issue by marking the related `Profile` function dead. Reviewed By: martong, balazske Differential Revision: https://reviews.llvm.org/D127839
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions