diff options
Diffstat (limited to 'lld/ELF/Target.cpp')
| -rw-r--r-- | lld/ELF/Target.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 3cace69e7fb..046b6a23d48 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -65,7 +65,7 @@ template <class ELFT> static std::string getErrorLoc(uint8_t *Loc) { if (!IS || !IS->OutSec) continue; - uint8_t *ISLoc = cast<OutputSection<ELFT>>(IS->OutSec)->Loc + IS->OutSecOff; + uint8_t *ISLoc = cast<OutputSection>(IS->OutSec)->Loc + IS->OutSecOff; if (ISLoc <= Loc && Loc < ISLoc + IS->template getSize<ELFT>()) return IS->template getLocation<ELFT>(Loc - ISLoc) + ": "; } |

