@@ -375,7 +375,7 @@ static bool getCompilationRecordPath(std::string &buildRecordPath,
375
375
return false ;
376
376
}
377
377
378
- static StringRef failedToReadOutOfDateMap (bool ShowIncrementalBuildDecisions,
378
+ static std::string failedToReadOutOfDateMap (bool ShowIncrementalBuildDecisions,
379
379
StringRef buildRecordPath,
380
380
StringRef reason = " " ) {
381
381
std::string why = " malformed build record file" ;
@@ -398,7 +398,7 @@ static void dealWithRemovedInputs(ArrayRef<StringRef> removedInputs,
398
398
bool ShowIncrementalBuildDecisions);
399
399
400
400
// / Returns why ignore incrementality
401
- static StringRef
401
+ static std::string
402
402
populateOutOfDateMap (InputInfoMap &map, llvm::sys::TimePoint<> &LastBuildTime,
403
403
StringRef argsHashStr, const InputFileList &inputs,
404
404
StringRef buildRecordPath,
@@ -893,7 +893,7 @@ Driver::buildCompilation(const ToolChain &TC,
893
893
computeArgsHash (ArgsHash, *TranslatedArgList);
894
894
llvm::sys::TimePoint<> LastBuildTime = llvm::sys::TimePoint<>::min ();
895
895
InputInfoMap outOfDateMap;
896
- StringRef whyIgnoreIncrementallity =
896
+ std::string whyIgnoreIncrementallity =
897
897
!Incremental
898
898
? " "
899
899
: buildRecordPath.empty ()
@@ -1027,7 +1027,7 @@ Driver::buildCompilation(const ToolChain &TC,
1027
1027
// This has to happen after building jobs, because otherwise we won't even
1028
1028
// emit .swiftdeps files for the next build.
1029
1029
if (!whyIgnoreIncrementallity.empty ())
1030
- C->disableIncrementalBuild (whyIgnoreIncrementallity. str () );
1030
+ C->disableIncrementalBuild (whyIgnoreIncrementallity);
1031
1031
1032
1032
if (Diags.hadAnyError ())
1033
1033
return nullptr ;
0 commit comments