[PATCH] D56295: [TSan] Use switches when dealing with enums

Julian Lettner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 3 15:12:05 PST 2019


yln created this revision.
yln added reviewers: dcoughlin, kubamracek, dvyukov, delcypher.
yln added a project: Sanitizers.
Herald added a reviewer: jfb.
Herald added subscribers: Sanitizers, llvm-commits.

Small refactoring: replace some if-else cascades with switches so that the compiler warns us about missing cases.
Maybe found a small bug?


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D56295

Files:
  lib/tsan/rtl/tsan_debugging.cc
  lib/tsan/rtl/tsan_report.cc
  lib/tsan/rtl/tsan_suppressions.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56295.180149.patch
Type: text/x-patch
Size: 8480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190103/f705ef63/attachment.bin>


More information about the llvm-commits mailing list