]> granicus.if.org Git - clang/commit
Sema: correct typo recovery with blocks
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 31 Oct 2015 00:39:15 +0000 (00:39 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 31 Oct 2015 00:39:15 +0000 (00:39 +0000)
commit2970073f297a859cd0e29be112369b8790aa7678
treee74964e59a56d4ab708c5503e1b49c3d6cfb49c4
parentd07229c7b371022fabd1d039725df4e87094bca2
Sema: correct typo recovery with blocks

Handle blocks in the tree transform for the typo correction as otherwise, the
capture may miss.  This would trigger an assertion.  Thanks to Doug Gregor for
the help with this!

Fixes PR25001.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251729 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/SemaCXX/typo-correction-blocks.c [new file with mode: 0644]