[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)
commitbf5fe2dbba0899bee4323f5eaa075acc43a18e2e
tree7da64aa7b23b86b938988140fce137b5b7d2c663
parentd4e7d0749bfde91d1f86a1f3adb02079c55a830f
[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

llvm-svn: 348434
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclObjC.cpp
clang/lib/Sema/SemaExpr.cpp