File tree 1 file changed +1
-17
lines changed
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)
1355
1355
if (!doesPlatformUseLegacyLayouts (platformName, archName))
1356
1356
return ;
1357
1357
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 ];
1375
1359
llvm::sys::path::append (defaultPath, " layouts-" );
1376
1360
defaultPath.append (archName);
1377
1361
defaultPath.append (" .yaml" );
You can’t perform that action at this time.
0 commit comments