[LLD][COFF] Convert file name to lowercase when inserting it into visitedLibs
authorPengxuan Zheng <pzheng@quicinc.com>
Tue, 14 Jun 2022 02:22:14 +0000 (19:22 -0700)
committerPengxuan Zheng <pzheng@quicinc.com>
Wed, 15 Jun 2022 16:39:35 +0000 (09:39 -0700)
commit9db61c3fe18aa5b717765745fd3287660fad571d
treeb05ad51bbb4ff7c1f24d435bef7adf4d161b4bf5
parentac2ad3b7bb920598ed6366eba23f157039927639
[LLD][COFF] Convert file name to lowercase when inserting it into visitedLibs

It seems to be a bug in `LinkerDriver::findFile`, the file name is not converted
to lowercase when being inserted into `visitedLibs`. This is the only exception
in the file and all other places always convert file names to lowercase when
inserting them into `visitedLibs` (or `visitedFiles`).

Reviewed By: thieta, hans

Differential Revision: https://reviews.llvm.org/D127709
lld/COFF/Driver.cpp
lld/test/COFF/visitedlibs.test [new file with mode: 0644]