summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorKirill Bobyrev <kbobyrev@google.com>2019-11-26 13:45:04 +0100
committerKirill Bobyrev <kbobyrev@google.com>2019-11-26 13:45:04 +0100
commitc547c22f18973dceaf5b40dae1b4ad7d3dd4eab7 (patch)
tree5e39c0760d95bd09ad47793872fe49b89380e3d4 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parentf69ac55d60d916e295ae0e507c5f4c2655360089 (diff)
downloadbcm5719-llvm-c547c22f18973dceaf5b40dae1b4ad7d3dd4eab7.tar.gz
bcm5719-llvm-c547c22f18973dceaf5b40dae1b4ad7d3dd4eab7.zip
[NFC] ASSERT_EQ before accessing items in containers
As discussed offline, something different from `EXPECT_EQ` should be used to check if the container contains enough items before accessing them so that other tests can still be run even if the assertion fails as opposed to having `EXPECT_EQ` failing and then aborting the run due to the errors caused by out-of-bounds memory access. Reviewed by: ilya-biryukov Differential Revision: https://reviews.llvm.org/D70528
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud