aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorTimm Baeder <tbaeder@redhat.com>2025-04-28 13:11:15 +0200
committerGitHub <noreply@github.com>2025-04-28 13:11:15 +0200
commite086d7b1464ad091ae849cb907f8647c8439cb66 (patch)
tree1ff24f88f052792a09eef3dd62a173a6f56c2ef6 /clang/lib/AST/ByteCode/Compiler.cpp
parent73d90ec8257488deaf6cc9b00dc778b109d5dfc0 (diff)
downloadllvm-e086d7b1464ad091ae849cb907f8647c8439cb66.zip
llvm-e086d7b1464ad091ae849cb907f8647c8439cb66.tar.gz
llvm-e086d7b1464ad091ae849cb907f8647c8439cb66.tar.bz2
[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.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
-rw-r--r--clang/lib/AST/ByteCode/Compiler.cpp2
1 files changed, 1 insertions, 1 deletions
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<Emitter>::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))