diff --git a/Meta/Lagom/ClangPlugins/LambdaCapturePluginAction.cpp b/Meta/Lagom/ClangPlugins/LambdaCapturePluginAction.cpp index a0073ee14ea..976909bb945 100644 --- a/Meta/Lagom/ClangPlugins/LambdaCapturePluginAction.cpp +++ b/Meta/Lagom/ClangPlugins/LambdaCapturePluginAction.cpp @@ -84,12 +84,7 @@ public: unless(hasParent( // ::operator()(...) cxxOperatorCallExpr(has(declRefExpr(to(equalsBoundNode("lambda")))))))))), - parmVarDecl( - allOf( - // It's important that the parameter has a RecordType, as a templated type can never escape its function - hasType(cxxRecordDecl()), - hasAnnotation("serenity::escaping"))) - .bind("lambda-param-ref")))), + parmVarDecl(hasAnnotation("serenity::escaping")).bind("lambda-param-ref")))), this); }