GlobalDecls should only be added to EmittedDeferredDecl if they
need reemission. This is checked in addEmittedDeferredDecl, which
is called via addDeferredDeclToEmit. Extend these checks to also
handle VarDecls (for lambdas, as tested in Interpreter/lambda.cpp)
and remove the direct access of EmittedDeferredDecls in EmitGlobal
that may actually end up duplicating FunctionDecls.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo