]> granicus.if.org Git - llvm/commit
[ThinLTO] Fix unreachable code when parsing summary entries.
authorTeresa Johnson <tejohnson@google.com>
Wed, 1 May 2019 16:26:59 +0000 (16:26 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 1 May 2019 16:26:59 +0000 (16:26 +0000)
commit506313c1cd76b512e04e66054861b57f5db46414
tree639b114983535e92f3487bad4042499c1ef12b00
parent6cfe68df52ab941cc1e9e39069e244c73045d20d
[ThinLTO] Fix unreachable code when parsing summary entries.

Summary:
Early returns were causing some code to be skipped. This was missed
since the summary entries are typically at the end of the llvm assembly
file.

Fixes PR41663.

Reviewers: RKSimon, wristow

Subscribers: mehdi_amini, inglorion, eraman, steven_wu, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D61355

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359697 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
test/Assembler/thinlto-summary.ll