Revert "[Object/ELF.h] - Improve testing of the fields in ELFFile<ELFT>::sections()."
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Tue, 23 Jul 2019 15:02:13 +0000 (15:02 +0000)
committerVlad Tsyrklevich <vlad@tsyrklevich.net>
Tue, 23 Jul 2019 15:02:13 +0000 (15:02 +0000)
commitaa4f8d04a967e889838211e00b9ba7fc0c07846f
treef9d7ca08a1ca3a078c0440ddba44f6d0d5654dc9
parent24f3e102a678e2d102ac5660371fba1c2cfccd25
Revert "[Object/ELF.h] - Improve testing of the fields in ELFFile<ELFT>::sections()."

This reverts commit r366796 because it was causing ubsan buildbot
failures.

llvm-svn: 366815
llvm/include/llvm/Object/ELF.h
llvm/include/llvm/ObjectYAML/ELFYAML.h
llvm/test/Object/invalid.test
llvm/tools/yaml2obj/yaml2elf.cpp