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/Interp.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/Interp.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Interp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp index af9b3bf..4d89f23 100644 --- a/clang/lib/AST/ByteCode/Interp.cpp +++ b/clang/lib/AST/ByteCode/Interp.cpp @@ -1607,15 +1607,15 @@ bool CallVirt(InterpState &S, CodePtr OpPC, const Function *Func, return true; } -bool CallBI(InterpState &S, CodePtr OpPC, const Function *Func, - const CallExpr *CE, uint32_t BuiltinID) { +bool CallBI(InterpState &S, CodePtr OpPC, const CallExpr *CE, + uint32_t BuiltinID) { // A little arbitrary, but the current interpreter allows evaluation // of builtin functions in this mode, with some exceptions. if (BuiltinID == Builtin::BI__builtin_operator_new && S.checkingPotentialConstantExpression()) return false; - return InterpretBuiltin(S, OpPC, Func, CE, BuiltinID); + return InterpretBuiltin(S, OpPC, CE, BuiltinID); } bool CallPtr(InterpState &S, CodePtr OpPC, uint32_t ArgSize, |