diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-07-23 06:09:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-23 06:09:27 +0200 |
commit | 23eef9a7c40f15fcf3cd393e7dc18f48c516bf7e (patch) | |
tree | a5dc4ce4226e614e4b8783bac99464d79da34d96 /clang/lib/AST/ByteCode/Compiler.h | |
parent | 0eafc737248f1232309cef6824a5a95d0747626e (diff) | |
download | llvm-23eef9a7c40f15fcf3cd393e7dc18f48c516bf7e.zip llvm-23eef9a7c40f15fcf3cd393e7dc18f48c516bf7e.tar.gz llvm-23eef9a7c40f15fcf3cd393e7dc18f48c516bf7e.tar.bz2 |
[clang][bytecode] Activate primitive fields before initializing them (#149963)
The initializer itself might need the field to be active.
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 5032693..3a26342 100644 --- a/clang/lib/AST/ByteCode/Compiler.h +++ b/clang/lib/AST/ByteCode/Compiler.h @@ -401,6 +401,8 @@ private: bool checkLiteralType(const Expr *E); bool maybeEmitDeferredVarInit(const VarDecl *VD); + bool refersToUnion(const Expr *E); + protected: /// Variable to storage mapping. llvm::DenseMap<const ValueDecl *, Scope::Local> Locals; |