Now it returns Symbol. This should be NFC that
avoids doing cast at the caller's sides.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lld/trunk/ELF/SymbolTable.cpp | ||
---|---|---|
477 | 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 | 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. |
If Cmp == 0, doesn't this cast fail with an assertion failure because S is not guaranteed to be a Defined symbol?