[PATCH] D32761: Fix bugs checking va_start in lambdas and erroneous contexts

2017-05-04 Thread Reid Kleckner via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302188: Fix bugs checking va_start in lambdas and erroneous contexts (authored by rnk). Changed prior to commit: https://reviews.llvm.org/D32761?vs=97503&id=97868#toc Repository: rL LLVM https://rev

[PATCH] D32761: Fix bugs checking va_start in lambdas and erroneous contexts

2017-05-02 Thread Reid Kleckner via Phabricator via cfe-commits
rnk created this revision. First, getCurFunction looks through blocks and lambdas, which is wrong. Inside a lambda, va_start should refer to the lambda call operator prototype. This fixes PR32737. Second, we shouldn't use any of the getCur* methods, because they look through contexts that we don'