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
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'