]> granicus.if.org Git - clang/commit
[Sema] Adjust Sema::getCurBlock()/getCurLambda() to take into account that we may...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 26 Apr 2014 18:29:13 +0000 (18:29 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 26 Apr 2014 18:29:13 +0000 (18:29 +0000)
commitc117f224c622bac377d7fcf102ef6f29598099d8
tree55e1f6c5fd3008e5c5096f5d5f99766b42468566
parentdbc6d63bd5ffb866033822536d90ab57974cb224
[Sema] Adjust Sema::getCurBlock()/getCurLambda() to take into account that we may have
switch CurContext due to class template instantiation.

Fixes crash of the included test case.
rdar://16527205

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207325 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaLambda.cpp
test/SemaCXX/decltype.cpp