This is an archive of the discontinued LLVM Phabricator instance.

[clang][IFS] Prevent Clang-IFS from Leaking symbols from inside a block.
AbandonedPublic

Authored by plotfi on Dec 10 2019, 4:50 PM.

Details

Reviewers
compnerd
cishida
Summary

Built libdispatch with clang interface stubs. Ran into some block related issues. Basically VarDecl symbols can leak out because I wasn't checking the case where a VarDecl is contained inside a BlockDecl (versus a method or function).

This patch checks that a VarDecl is not a child decl of a BlockDecl.
This patch also does something very similar for c++ lambdas as well.

Diff Detail

Event Timeline

plotfi created this revision.Dec 10 2019, 4:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2019, 4:50 PM
plotfi abandoned this revision.Dec 11 2019, 12:34 PM

Abandoning. Duplicate diff