diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-04-28 13:11:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-28 13:11:15 +0200 |
commit | e086d7b1464ad091ae849cb907f8647c8439cb66 (patch) | |
tree | 1ff24f88f052792a09eef3dd62a173a6f56c2ef6 /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | 73d90ec8257488deaf6cc9b00dc778b109d5dfc0 (diff) | |
download | llvm-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.cpp | 2 |
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)) |