[ELF] - Remove dead code #2.

'Pos' is never can be 0 here.

llvm-svn: 336436
This commit is contained in:
George Rimar 2018-07-06 13:30:50 +00:00
parent 92bd49e874
commit e5cd32b702
1 changed files with 1 additions and 4 deletions

View File

@ -281,10 +281,7 @@ static bool encloses(StringRef S, StringRef T) {
MemoryBufferRef ScriptLexer::getCurrentMB() {
// Find input buffer containing the current token.
assert(!MBs.empty());
if (!Pos)
return MBs[0];
assert(!MBs.empty() && Pos > 0);
for (MemoryBufferRef MB : MBs)
if (encloses(MB.getBuffer(), Tokens[Pos - 1]))
return MB;