File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -1355,23 +1355,7 @@ TypeConverter::TypeConverter(IRGenModule &IGM)
13551355 if (!doesPlatformUseLegacyLayouts (platformName, archName))
13561356 return ;
13571357
1358- // Find the first runtime library path that exists.
1359- bool found = false ;
1360- for (auto &RuntimeLibraryPath
1361- : IGM.Context .SearchPathOpts .RuntimeLibraryPaths ) {
1362- if (fs->exists (RuntimeLibraryPath)) {
1363- defaultPath.append (RuntimeLibraryPath);
1364- found = true ;
1365- break ;
1366- }
1367- }
1368- if (!found) {
1369- auto joined = llvm::join (IGM.Context .SearchPathOpts .RuntimeLibraryPaths ,
1370- " ', '" );
1371- llvm::report_fatal_error (" Unable to find a runtime library path at '"
1372- + joined + " '" );
1373- }
1374-
1358+ defaultPath = IGM.Context .SearchPathOpts .RuntimeLibraryPaths [0 ];
13751359 llvm::sys::path::append (defaultPath, " layouts-" );
13761360 defaultPath.append (archName);
13771361 defaultPath.append (" .yaml" );
You can’t perform that action at this time.
0 commit comments