[PATCH] D73701: [clang] fix linkage of nested lambda
Michael Liao via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 30 09:19:45 PST 2020
hliao added a comment.
+ rsmith
================
Comment at: clang/lib/AST/Decl.cpp:1416-1417
return getLVForClosure(
- OuterMostLambda->getDeclContext()->getRedeclContext(),
- OuterMostLambda->getLambdaContextDecl(), computation);
+ Record->getDeclContext()->getRedeclContext(),
+ Record->getLambdaContextDecl(), computation);
}
----------------
The code is still inconsistent with the comment. `Record` is the lambda itself instead of the parent of the lambda.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73701/new/
https://reviews.llvm.org/D73701
More information about the cfe-commits
mailing list