Skip to content

Commit 6f2029d

Browse files
committed
LTO: Fix bug, Res was meant to be InputRes.
1 parent 1a0121c commit 6f2029d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/LTO/LTO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ LTO::addRegularLTO(InputFile &Input, ArrayRef<SymbolResolution> InputRes,
872872
// Delete aliases entries for non-prevailing symbols on the ThinLTO side of
873873
// this input file.
874874
DenseSet<StringRef> Prevailing;
875-
for (auto [I, R] : zip(Input.symbols(), Res))
875+
for (auto [I, R] : zip(Input.symbols(), InputRes))
876876
if (R.Prevailing && !I.getIRName().empty())
877877
Prevailing.insert(I.getIRName());
878878
std::vector<MDNode *> AliasGroups;

0 commit comments

Comments
 (0)