We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14c323c commit 7aabdb8Copy full SHA for 7aabdb8
clang/lib/AST/Interp/ByteCodeEmitter.cpp
@@ -31,6 +31,12 @@ static bool isUnevaluatedBuiltin(unsigned BuiltinID) {
31
}
32
33
Function *ByteCodeEmitter::compileFunc(const FunctionDecl *FuncDecl) {
34
+
35
+ // Manually created functions that haven't been assigned proper
36
+ // parameters yet.
37
+ if (!FuncDecl->param_empty() && !FuncDecl->param_begin())
38
+ return nullptr;
39
40
bool IsLambdaStaticInvoker = false;
41
if (const auto *MD = dyn_cast<CXXMethodDecl>(FuncDecl);
42
MD && MD->isLambdaStaticInvoker()) {
0 commit comments