aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
diff options
context:
space:
mode:
authorJake Ehrlich <jakehehrlich@google.com>2017-10-10 21:28:22 +0000
committerJake Ehrlich <jakehehrlich@google.com>2017-10-10 21:28:22 +0000
commit70bd75f8d8bd396b2b86b89760ee1689d986527d (patch)
treed926f28e4ed059941c81aefa4462af4cd20f543d /llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
parentef421f9c180296eb890a235726a7a2a4195e8400 (diff)
downloadllvm-70bd75f8d8bd396b2b86b89760ee1689d986527d.zip
llvm-70bd75f8d8bd396b2b86b89760ee1689d986527d.tar.gz
llvm-70bd75f8d8bd396b2b86b89760ee1689d986527d.tar.bz2
[llvm-objcopy] Fix latent bug that allowed some Sections to be improperly cast to StringTableSections
If a Section had Type SHT_STRTAB (which could happen if you had a .dynstr section) it was possible to cast Section to StringTableSection and get away with any operation that was supported by SectionBase without it being noticed. This change makes this bug easier to notice and fixes it where it occurred. It also made me realize that there was some duplication of efforts in the loop that calls ::initialize. These issues are all fixed by this change. Differential Revision: https://reviews.llvm.org/D38329 llvm-svn: 315372
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfoImpls.cpp')
0 files changed, 0 insertions, 0 deletions