diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-05-18 20:18:17 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2018-05-18 20:18:17 +0000 |
commit | 746b78de7812bc785fbb5207b788348040b23fa7 (patch) | |
tree | c187f7d587cd10c98623cf5df56ec91c3289fdce /lib/Sema/SemaLambda.cpp | |
parent | 6cfc2d490caedf2aa783f086cf71f4bab807974a (diff) |
Revert r332470 (and corresponding tests in r332492).
This regressed our support for __attribute__((section)). See added test file
for example of code broken by this.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaLambda.cpp')
-rw-r--r-- | lib/Sema/SemaLambda.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Sema/SemaLambda.cpp b/lib/Sema/SemaLambda.cpp index 4acff89fb9..fec0d575e5 100644 --- a/lib/Sema/SemaLambda.cpp +++ b/lib/Sema/SemaLambda.cpp @@ -910,10 +910,6 @@ void Sema::ActOnStartOfLambdaDefinition(LambdaIntroducer &Intro, AddRangeBasedOptnone(Method); // Attributes on the lambda apply to the method. - if (Attr *A = getImplicitSectionAttrForFunction(Method)) - Method->addAttr(A); - - // Attributes on the lambda apply to the method. ProcessDeclAttributes(CurScope, Method, ParamInfo); // CUDA lambdas get implicit attributes based on the scope in which they're |