Remove the struct since it's used only once. This removes one level of
indirection, and moves all *AddressDescription to be one of the recently
introduced structures.
Details
- Reviewers
kcc vitalybuka eugenis
Diff Detail
Event Timeline
lib/asan/asan_debugging.cc | ||
---|---|---|
82 | could you avoid NOLINT with descr = {addr} ? | |
85 | Could you please add: if any bug in switches below, it would be easiest to debug consistent values | |
86 | what is going to happen if descr.kind is not one of your cases? if it's impossible, CHECK in default: would be nice. |
This revision got merged with D24131.
lib/asan/asan_debugging.cc | ||
---|---|---|
85 | I usually avoid initializing when we cover all cases, as it makes it easier for msan to catch the uninitialized use. | |
86 | If we add the default case, we get a clang warning, though. I can add a check that we have one of those, before the switch, but it will end up ugly: CHECK(descr.kind == kAddressKindWild || descr.kind == kAddressKindShadow || ...); Should we also fix places like PrintHeapChunkAccess in asan_descriptions.cc, which does the same thing (not have a default case)? |
could you avoid NOLINT with descr = {addr} ?