Now it returns Symbol. This should be NFC that
avoids doing cast at the caller's sides.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lld/trunk/ELF/SymbolTable.cpp | ||
---|---|---|
477 ↗ | (On Diff #175034) | If Cmp == 0, doesn't this cast fail with an assertion failure because S is not guaranteed to be a Defined symbol? |
lld/trunk/ELF/SymbolTable.cpp | ||
---|---|---|
477 ↗ | (On Diff #175034) | Note that if Cmp == 0 we call the reportDuplicate which do the cast<Defined> inside: I think in all cases S here is a Defined. |