[cfe-commits] r79968 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Fariborz Jahanian
fjahanian at apple.com
Tue Aug 25 08:16:18 PDT 2009
On Aug 25, 2009, at 12:12 AM, Daniel Dunbar wrote:
> Test case?
I will submit this test case once I get off the bus.
@interface IDEConfigurableDataSource
{
struct {
unsigned short _reserved : 16;
_Bool _draggedNodesAreDeletable: 1;
_Bool _draggedOutsideOutlineView : 1;
_Bool _adapterRespondsTo_addRootPaths : 1;
_Bool _adapterRespondsTo_moveDataNodes : 1;
_Bool _adapterRespondsTo_removeRootDataNode : 1;
_Bool _adapterRespondsTo_doubleClickDataNode : 1;
_Bool _adapterRespondsTo_selectDataNode : 1;
_Bool _adapterRespondsTo_textDidEndEditing : 1;
_Bool _adapterRespondsTo_updateAndSaveRoots : 1;
_Bool _adapterRespondsTo_askToDeleteRootNodes : 1;
_Bool _adapterRespondsTo_contextMenuForSelectedNodes : 1;
_Bool _adapterRespondsTo_pasteboardFilenamesForNodes : 1;
_Bool _adapterRespondsTo_writeItemsToPasteboard : 1;
_Bool _adapterRespondsTo_writeItemsToPasteboardXXXX : 1;
} _flags;
}
@end
@implementation IDEConfigurableDataSource
@end
- Fariborz
>
>
> - Daniel
>
> On Mon, Aug 24, 2009 at 7:07 PM, Anders Carlsson<andersca at mac.com>
> wrote:
>> Author: andersca
>> Date: Mon Aug 24 21:07:02 2009
>> New Revision: 79968
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=79968&view=rev
>> Log:
>> Fix ivar layout map generation (hopefully).
>>
>> Modified:
>> cfe/trunk/lib/CodeGen/CGObjCMac.cpp
>>
>> Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
>> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=79968&r1=79967&r2=79968&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =====================================================================
>> --- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
>> +++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Mon Aug 24 21:07:02 2009
>> @@ -3050,7 +3050,12 @@
>> if (RD) {
>> if (Field->isBitField()) {
>> CodeGenTypes::BitFieldInfo Info =
>> CGM.getTypes().getBitFieldInfo(Field);
>> - FieldOffset = Layout->getElementOffset(Info.FieldNo);
>> +
>> + const llvm::Type *Ty =
>> + CGM.getTypes().ConvertTypeForMemRecursive(Field-
>> >getType());
>> + uint64_t TypeSize =
>> + CGM.getTypes().getTargetData().getTypeAllocSize(Ty);
>> + FieldOffset = Info.FieldNo * TypeSize;
>> } else
>> FieldOffset =
>> Layout-
>> >getElementOffset(CGM.getTypes().getLLVMFieldNo(Field));
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list