diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-04-08 02:59:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-04-08 02:59:45 +0000 |
commit | 7f2896406c8f14bf123578610043a919ba1a1c8a (patch) | |
tree | b9001dacc3b1f0e7ec68cd0b35d843b70ed19f9b /lib/CodeGen/CGObjCMac.cpp | |
parent | 4f4fd92c6c64ecbc65507f63ddd09211f732622c (diff) |
IRgen: Move the bit-field access type into CGBitFieldInfo, and change bit-field LValues to just store the base address of object containing the bit-field.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index ac8fa057a0..be17e59d97 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -126,8 +126,8 @@ LValue CGObjCRuntime::EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, // objects. unsigned FieldNo = 0; // This value is unused. CGBitFieldInfo *Info = - new (CGF.CGM.getContext()) CGBitFieldInfo(FieldNo, BitOffset, BitFieldSize, - IvarTy->isSignedIntegerType()); + new (CGF.CGM.getContext()) CGBitFieldInfo( + LTy, FieldNo, BitOffset, BitFieldSize, IvarTy->isSignedIntegerType()); // FIXME: We need to set a very conservative alignment on this, or make sure // that the runtime is doing the right thing. |