diff options
author | John McCall <rjmccall@apple.com> | 2010-05-21 01:18:57 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-05-21 01:18:57 +0000 |
commit | a9976d3b192690db20f59dc44099ac4ca939bdb7 (patch) | |
tree | d803c7b2d650841a32cf0b36c87c68adfd47faaa /lib/CodeGen/CodeGenFunction.h | |
parent | bc365c53606ab90537576cb48d93a54ce3fb0cb5 (diff) |
When emitting an lvalue for an anonymous struct or union member during
class initialization, drill down through an arbitrary number of anonymous
records.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 077b8169f1..048bd0918a 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -1052,6 +1052,9 @@ public: llvm::Value *EmitIvarOffset(const ObjCInterfaceDecl *Interface, const ObjCIvarDecl *Ivar); + LValue EmitLValueForAnonRecordField(llvm::Value* Base, + const FieldDecl* Field, + unsigned CVRQualifiers); LValue EmitLValueForField(llvm::Value* Base, const FieldDecl* Field, unsigned CVRQualifiers); |