Skip to content

Commit 40c0242

Browse files
committed
[CS] Use value() instead of * for ArgumentMismatchFailure
Make sure we reliably crash rather than producing garbage.
1 parent 54a8a86 commit 40c0242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSDiagnostics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,7 @@ class ArgumentMismatchFailure : public ContextualFailure {
21702170
FixBehavior fixBehavior =
21712171
FixBehavior::Error)
21722172
: ContextualFailure(solution, argType, paramType, locator, fixBehavior),
2173-
Info(*getFunctionArgApplyInfo(getLocator())) {}
2173+
Info(getFunctionArgApplyInfo(getLocator()).value()) {}
21742174

21752175
bool diagnoseAsError() override;
21762176
bool diagnoseAsNote() override;

0 commit comments

Comments
 (0)