HomePhabricator

[ELF] Replace a dead test in getSymVA() with assert()

Description

[ELF] Replace a dead test in getSymVA() with assert()

Symbols relative to discarded comdat sections are Undefined instead of
Defined now (after D59649 and D61583). The == &InputSection::Discarded
test becomes dead. I cannot find a test related to this behavior.

Reviewed By: ruiu

Differential Revision: https://reviews.llvm.org/D62725

Details

Committed
MaskRayMay 31 2019, 3:12 AM
Reviewer
ruiu
Differential Revision
D62725: [ELF] Replace a dead test in getSymVA() with assert()
Parents
rL362217: [InstCombine] 'C-(C2-X) --> X+(C-C2)' constant-fold
Branches
Unknown
Tags
Unknown