diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-04-28 14:08:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-28 14:08:42 +0200 |
commit | 959905a5adca4dc697160f8cbab302fefe610034 (patch) | |
tree | 74dc9415acf0b7768c3639d0312efec627fb1563 /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | e086d7b1464ad091ae849cb907f8647c8439cb66 (diff) | |
download | llvm-959905a5adca4dc697160f8cbab302fefe610034.zip llvm-959905a5adca4dc697160f8cbab302fefe610034.tar.gz llvm-959905a5adca4dc697160f8cbab302fefe610034.tar.bz2 |
[clang][bytecode] Don't create Function instances for builtins (#137618)
Now that we don't use them anymore in InterpBuiltin.cpp and we don't
create frames for them anymore anyway, just don't create Function
instances.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Compiler.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp index a1b2d13..9a1e61b 100644 --- a/clang/lib/AST/ByteCode/Compiler.cpp +++ b/clang/lib/AST/ByteCode/Compiler.cpp @@ -4798,10 +4798,6 @@ bool Compiler<Emitter>::VisitBuiltinCallExpr(const CallExpr *E, return true; } - const Function *Func = getFunction(E->getDirectCallee()); - if (!Func) - return false; - // For these, we're expected to ultimately return an APValue pointing // to the CallExpr. This is needed to get the correct codegen. if (BuiltinID == Builtin::BI__builtin___CFStringMakeConstantString || @@ -4833,7 +4829,7 @@ bool Compiler<Emitter>::VisitBuiltinCallExpr(const CallExpr *E, } } - if (!this->emitCallBI(Func, E, BuiltinID, E)) + if (!this->emitCallBI(E, BuiltinID, E)) return false; if (DiscardResult && !ReturnType->isVoidType()) { |