This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix a typo-correction crash
ClosedPublic

Authored by hokein on Sep 17 2020, 12:56 AM.

Details

Summary

We leave a dangling TypoExpr when typo-correction is performed
successfully in checkArgsForPlaceholders, which leads a crash in the
later TypoCorrection.

This code was added in https://github.com/llvm/llvm-project/commit/1586782767938df3a20f7abc4d8335c48b100bc4,
and it didn't seem to have enough test coverage.
The fix is to remove this part, and no failuer tests.

Diff Detail

Event Timeline

hokein created this revision.Sep 17 2020, 12:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 17 2020, 12:56 AM
hokein requested review of this revision.Sep 17 2020, 12:56 AM
rsmith accepted this revision.Sep 21 2020, 3:28 PM
This revision is now accepted and ready to land.Sep 21 2020, 3:28 PM
This revision was landed with ongoing or failed builds.Sep 22 2020, 11:21 AM
This revision was automatically updated to reflect the committed changes.