Skip to content

Commit a3961c8

Browse files
authored
Merge pull request #76933 from allevato/unique-ptr-hardening
[Frontend] Fix a small `unique_ptr` array access.
2 parents d5278d9 + bdf4018 commit a3961c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1985,7 +1985,7 @@ int swift::performFrontend(ArrayRef<const char *> Args,
19851985
// hundreds or thousands of lines. Skip dumping this output in that case.
19861986
if (!Invocation.getFrontendOptions().InputsAndOutputs.isWholeModule()) {
19871987
for_each(configurationFileBuffers.begin(), configurationFileBuffers.end(),
1988-
&configurationFileStackTraces[0],
1988+
configurationFileStackTraces.get(),
19891989
[](const std::unique_ptr<llvm::MemoryBuffer> &buffer,
19901990
std::optional<PrettyStackTraceFileContents> &trace) {
19911991
trace.emplace(*buffer);

0 commit comments

Comments
 (0)