582c6a82 removed a constructor of 'ResourceSegments' that is needed in LLVM unit tests. * Revert 582c6a82 * Update the constructor to take a const reference of `std::list` as pointed out in #89193.