diff --git a/lib/FrontendTool/FrontendTool.cpp b/lib/FrontendTool/FrontendTool.cpp index 5a0aae2a3277b..afceb34d2c1c8 100644 --- a/lib/FrontendTool/FrontendTool.cpp +++ b/lib/FrontendTool/FrontendTool.cpp @@ -1988,7 +1988,7 @@ int swift::performFrontend(ArrayRef Args, // hundreds or thousands of lines. Skip dumping this output in that case. if (!Invocation.getFrontendOptions().InputsAndOutputs.isWholeModule()) { for_each(configurationFileBuffers.begin(), configurationFileBuffers.end(), - &configurationFileStackTraces[0], + configurationFileStackTraces.get(), [](const std::unique_ptr &buffer, std::optional &trace) { trace.emplace(*buffer);