diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-05-13 12:56:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-13 12:56:08 +0200 |
commit | c14acb74423a577e10bbb635109851742e77444f (patch) | |
tree | 4677a204e97e96703a534ba7e2f1f9ca0c18d8b4 /clang/lib/AST/ByteCode/Interp.cpp | |
parent | 95c683fc1b8cd4f008b3dddaadfa7b5edb1e25e9 (diff) | |
download | llvm-c14acb74423a577e10bbb635109851742e77444f.zip llvm-c14acb74423a577e10bbb635109851742e77444f.tar.gz llvm-c14acb74423a577e10bbb635109851742e77444f.tar.bz2 |
[clang][bytecode] Save Immediate bit in Function (#139671)
Otherwise, we have to look at the FunctionDecl at every function call.
Diffstat (limited to 'clang/lib/AST/ByteCode/Interp.cpp')
-rw-r--r-- | clang/lib/AST/ByteCode/Interp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp index 91930c0..bc86018 100644 --- a/clang/lib/AST/ByteCode/Interp.cpp +++ b/clang/lib/AST/ByteCode/Interp.cpp @@ -1501,7 +1501,7 @@ bool Call(InterpState &S, CodePtr OpPC, const Function *Func, InterpFrame *FrameBefore = S.Current; S.Current = NewFrame.get(); - InterpStateCCOverride CCOverride(S, Func->getDecl()->isImmediateFunction()); + InterpStateCCOverride CCOverride(S, Func->isImmediate()); // Note that we cannot assert(CallResult.hasValue()) here since // Ret() above only sets the APValue if the curent frame doesn't // have a caller set. |