summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/SimpleTest.cpp
diff options
context:
space:
mode:
authorKaelyn Takata <rikka@google.com>2015-01-27 22:01:39 +0000
committerKaelyn Takata <rikka@google.com>2015-01-27 22:01:39 +0000
commit7a503694febda8648e39417ba9039e3adeed5e36 (patch)
tree24fe377dfc277e6b0b601debe2038f235b5a2017 /llvm/lib/Fuzzer/test/SimpleTest.cpp
parent1ac935652407c3042e3cf23614b6da5d188bff70 (diff)
downloadbcm5719-llvm-7a503694febda8648e39417ba9039e3adeed5e36.tar.gz
bcm5719-llvm-7a503694febda8648e39417ba9039e3adeed5e36.zip
Fix a think-o in handling ambiguous corrections for a TypoExpr.
Under certain circumstances, the identifier mentioned in the diagnostic won't match the intended correction even though the replacement expression and the note pointing to the decl are both correct. Basically, the TreeTransform assumes the TypoExpr's Consumer points to the correct TypoCorrection, but the handling of typos that appear to be ambiguous from the point of view of TransformTypoExpr would cause that assumption to be violated by altering the Consumer's correction stream. This fix allows the Consumer's correction stream to be reset to the right TypoCorrection after successfully resolving the percieved ambiguity. Included is a fix to suppress correcting the RHS of an assignment to the LHS of that assignment for non-C++ code, to prevent a regression in test/SemaObjC/provisional-ivar-lookup.m. This fixes PR22297. llvm-svn: 227251
Diffstat (limited to 'llvm/lib/Fuzzer/test/SimpleTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud