From e086d7b1464ad091ae849cb907f8647c8439cb66 Mon Sep 17 00:00:00 2001 From: Timm Baeder Date: Mon, 28 Apr 2025 13:11:15 +0200 Subject: [clang][bytecode] Don't create function frames for builtin calls (#137607) They don't have local variables etc. so don't create frames for them. --- clang/lib/AST/ByteCode/Compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/AST/ByteCode/Compiler.cpp') diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp index a961083..a1b2d13 100644 --- a/clang/lib/AST/ByteCode/Compiler.cpp +++ b/clang/lib/AST/ByteCode/Compiler.cpp @@ -4825,7 +4825,7 @@ bool Compiler::VisitBuiltinCallExpr(const CallExpr *E, return false; } - if (!Func->isUnevaluatedBuiltin()) { + if (!Context::isUnevaluatedBuiltin(BuiltinID)) { // Put arguments on the stack. for (const auto *Arg : E->arguments()) { if (!this->visit(Arg)) -- cgit v1.1