aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorTimm Baeder <tbaeder@redhat.com>2025-09-23 12:55:48 +0200
committerGitHub <noreply@github.com>2025-09-23 12:55:48 +0200
commit492b60937bcdda3f7f834bdd73e893479549d6b5 (patch)
tree33f712ebcf4eca052f518865449989357f5ada8d /clang/lib/AST/ByteCode/Compiler.cpp
parent70ab1201e474eefb138668891faff7e1420f0c53 (diff)
downloadllvm-492b60937bcdda3f7f834bdd73e893479549d6b5.zip
llvm-492b60937bcdda3f7f834bdd73e893479549d6b5.tar.gz
llvm-492b60937bcdda3f7f834bdd73e893479549d6b5.tar.bz2
[clang][bytecode] Remove bogus Initializing special case (#159933)
This doesn't seem to be needed anymore and causes problems. Fixes #159787
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
-rw-r--r--clang/lib/AST/ByteCode/Compiler.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/clang/lib/AST/ByteCode/Compiler.cpp b/clang/lib/AST/ByteCode/Compiler.cpp
index 7518cfd..b4da999 100644
--- a/clang/lib/AST/ByteCode/Compiler.cpp
+++ b/clang/lib/AST/ByteCode/Compiler.cpp
@@ -2383,13 +2383,8 @@ bool Compiler<Emitter>::VisitMemberExpr(const MemberExpr *E) {
return this->visitDeclRef(Member, E);
}
- if (Initializing) {
- if (!this->delegate(Base))
- return false;
- } else {
- if (!this->visit(Base))
- return false;
- }
+ if (!this->visit(Base))
+ return false;
// Base above gives us a pointer on the stack.
const auto *FD = cast<FieldDecl>(Member);