diff options
author | Julian Lettner <jlettner@apple.com> | 2019-01-16 01:45:12 +0000 |
---|---|---|
committer | Julian Lettner <jlettner@apple.com> | 2019-01-16 01:45:12 +0000 |
commit | b15181368831966c0ec1824617a4c95853fd1b92 (patch) | |
tree | d86b2dfee6aa9d3a54d6d21aabb6bd7462b6669b /lib/msan/msan_poisoning.cc | |
parent | 724c5ea89bd4e3f27edf5751ac366369035e6d79 (diff) | |
download | compiler-rt-b15181368831966c0ec1824617a4c95853fd1b92.tar.gz |
[TSan] Use switches when dealing with enums
Summary:
Small refactoring: replace some if-else cascades with switches so that the compiler warns us about missing cases.
Maybe found a small bug?
Reviewers: dcoughlin, kubamracek, dvyukov, delcypher, jfb
Reviewed By: dvyukov
Subscribers: llvm-commits, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D56295
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_poisoning.cc')
0 files changed, 0 insertions, 0 deletions