diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-08-18 11:12:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-18 11:12:33 +0200 |
commit | 0d05c42b6ac48c73c8fb90011b62d3f856aadf0d (patch) | |
tree | 65c1e740a72c834ce6ee9fddcc5e82ca0127e7d4 /clang/lib/AST/ByteCode/Compiler.h | |
parent | bcab8ac126c0b4c439caa3104d66d33d0f70f86f (diff) | |
download | llvm-0d05c42b6ac48c73c8fb90011b62d3f856aadf0d.zip llvm-0d05c42b6ac48c73c8fb90011b62d3f856aadf0d.tar.gz llvm-0d05c42b6ac48c73c8fb90011b62d3f856aadf0d.tar.bz2 |
[clang][bytecode] Improve __builtin_{,dynamic_}object_size implementation (#153601)
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.h')
-rw-r--r-- | clang/lib/AST/ByteCode/Compiler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/ByteCode/Compiler.h b/clang/lib/AST/ByteCode/Compiler.h index 901934e..20571df 100644 --- a/clang/lib/AST/ByteCode/Compiler.h +++ b/clang/lib/AST/ByteCode/Compiler.h @@ -282,6 +282,7 @@ protected: /// been created. visitInitializer() then relies on a pointer to this /// variable being on top of the stack. bool visitInitializer(const Expr *E); + bool visitAsLValue(const Expr *E); /// Evaluates an expression for side effects and discards the result. bool discard(const Expr *E); /// Just pass evaluation on to \p E. This leaves all the parsing flags @@ -426,6 +427,7 @@ protected: bool DiscardResult = false; bool InStmtExpr = false; + bool ToLValue = false; /// Flag inidicating if we're initializing an already created /// variable. This is set in visitInitializer(). |