]> granicus.if.org Git - clang/commit
Look at whether TransformTypos returned a different Expr instead of looking at the...
authorNick Lewycky <nicholas@mxc.ca>
Tue, 16 Dec 2014 22:02:06 +0000 (22:02 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 16 Dec 2014 22:02:06 +0000 (22:02 +0000)
commita4891bac9b285821ff2e23292db8037c0f336c78
tree308aa275a685ee027659245e43de2cb7db1fe69b
parent046ea41e0a46efede23805cd80a4d132ed75d799
Look at whether TransformTypos returned a different Expr instead of looking at the number of uncorrected typos before and after. Correcting one typo may produce an expression with another TypoExpr in it, leading to matching counts even though a typo was corrected.

Fixes PR21925!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224380 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/typo-correction-delayed.cpp