]> granicus.if.org Git - clang/commit
[Sema] Push and Pop Expression Evaluation Context Records at the start and end of...
authorLeonard Chan <leonardchan@google.com>
Thu, 6 Dec 2018 00:10:36 +0000 (00:10 +0000)
committerLeonard Chan <leonardchan@google.com>
Thu, 6 Dec 2018 00:10:36 +0000 (00:10 +0000)
commit8a3afc37501d8fa042ae6440ce055b9470fcea1a
treeec71b240350d22f7f28ff1c4267ec38642134e5e
parent57dc61b50d38d361de39ae2cf02ef200eed252e1
[Sema] Push and Pop Expression Evaluation Context Records at the start and end of function definitions

This patch creates a new context for every function definition we enter.
Currently we do not push and pop on these, usually working off of the global
context record added in the Sema constructor, which never gets popped.

Differential Revision: https://reviews.llvm.org/D54014

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348434 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclObjC.cpp
lib/Sema/SemaExpr.cpp