Index: llvm/lib/LTO/ThinLTOCodeGenerator.cpp =================================================================== --- llvm/lib/LTO/ThinLTOCodeGenerator.cpp +++ llvm/lib/LTO/ThinLTOCodeGenerator.cpp @@ -967,6 +967,7 @@ // Sequential linking phase auto Index = linkCombinedIndex(); + assert(Index); // Save temps: index. if (!SaveTempsDir.empty()) {