summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaLambda.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-05-18 20:18:17 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-05-18 20:18:17 +0000
commitfb50dd34ed5d405de083e37d0c8a1baa2cd76387 (patch)
treee2a8cee2339e6ca4dc7e2543050269ef80fbb650 /clang/lib/Sema/SemaLambda.cpp
parentad60559be7c636374dbfb9597588f9527ca1212a (diff)
downloadbcm5719-llvm-fb50dd34ed5d405de083e37d0c8a1baa2cd76387.tar.gz
bcm5719-llvm-fb50dd34ed5d405de083e37d0c8a1baa2cd76387.zip
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. llvm-svn: 332760
Diffstat (limited to 'clang/lib/Sema/SemaLambda.cpp')
-rw-r--r--clang/lib/Sema/SemaLambda.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaLambda.cpp b/clang/lib/Sema/SemaLambda.cpp
index 4acff89fb90..fec0d575e5b 100644
--- a/clang/lib/Sema/SemaLambda.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud