aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorDavid Goldman <dallasftball@gmail.com>2019-09-13 14:43:24 +0000
committerDavid Goldman <dallasftball@gmail.com>2019-09-13 14:43:24 +0000
commit6d186504216446a1620628057c10bddb9b0b9085 (patch)
treec0969ef1a5b3128d65be8df3b4d66a57df0d845f /llvm/lib/Support/VirtualFileSystem.cpp
parente7e8b51b0314d414ce647ca790186ecbbe567fd7 (diff)
downloadllvm-6d186504216446a1620628057c10bddb9b0b9085.zip
llvm-6d186504216446a1620628057c10bddb9b0b9085.tar.gz
llvm-6d186504216446a1620628057c10bddb9b0b9085.tar.bz2
[Sema][Typo Correction] Fix potential infite loop on ambiguity checks
Summary: This fixes a bug introduced in D62648, where Clang could infinite loop if it became stuck on a single TypoCorrection when it was supposed to be testing ambiguous corrections. Although not a common case, it could happen if there are multiple possible corrections with the same edit distance. The fix is simply to wipe the TypoExpr from the `TransformCache` so that the call to `TransformTypoExpr` doesn't use the `CachedEntry`. Reviewers: rsmith Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D67515 llvm-svn: 371859
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions