[PATCH] D70659: [ELF] Allow getErrPlace() to work before Out::bufferStart is set
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 25 16:57:22 PST 2019
ruiu added inline comments.
================
Comment at: lld/ELF/Target.cpp:103
+ : isec->data().data();
if (isecLoc <= loc && loc < isecLoc + isec->getSize())
return {isec, isec->template getLocation<ELFT>(loc - isecLoc) + ": "};
----------------
If Out::bufferStart is a nullptr, does this `if` statement always succeed?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70659/new/
https://reviews.llvm.org/D70659
More information about the llvm-commits
mailing list