diff --git a/clang/lib/AST/ByteCode/ByteCodeEmitter.cpp b/clang/lib/AST/ByteCode/ByteCodeEmitter.cpp index def93866fb0c9..bc1ef1bb6e7b2 100644 --- a/clang/lib/AST/ByteCode/ByteCodeEmitter.cpp +++ b/clang/lib/AST/ByteCode/ByteCodeEmitter.cpp @@ -26,11 +26,6 @@ void ByteCodeEmitter::compileFunc(const FunctionDecl *FuncDecl, assert(Func); assert(FuncDecl->isThisDeclarationADefinition()); - // Manually created functions that haven't been assigned proper - // parameters yet. - if (!FuncDecl->param_empty() && !FuncDecl->param_begin()) - return; - // Set up lambda captures. if (Func->isLambdaCallOperator()) { // Set up lambda capture to closure record field mapping.