]> granicus.if.org Git - clang/commit
Revert a change from r222797 that is no longer needed and can cause
authorKaelyn Takata <rikka@google.com>
Wed, 28 Jan 2015 21:10:46 +0000 (21:10 +0000)
committerKaelyn Takata <rikka@google.com>
Wed, 28 Jan 2015 21:10:46 +0000 (21:10 +0000)
commit601ded96c946f983c2bf2a20e4918fc98f0dba28
treeff6dbc9c211e6ed287ecdc077f4e281448156549
parentbf6f6d5f28f72d98225a6dc35642577ac6f7ae22
Revert a change from r222797 that is no longer needed and can cause
infinite recursion.

Also guard against said infinite recursion by adding an assert that will
trigger if CorrectDelayedTyposInExpr is called before a previous call to
CorrectDelayedTyposInExpr returns (i.e. if the TreeTransform run by
CorrectDelayedTyposInExpr calls a sequence of methods that
end up calling CorrectDelayedTyposInExpr, as the new test case had done
prior to this commit). Fixes PR22292.

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