]> granicus.if.org Git - clang/commitdiff
After talking to our runtime guru, I added a comment.
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 27 Jan 2009 22:27:56 +0000 (22:27 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 27 Jan 2009 22:27:56 +0000 (22:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63141 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index eef74083daeab60173201561b688c2d6c08f528c..eb26a95807b4393cff3b0600af58cd44babf145f 100644 (file)
@@ -3562,6 +3562,11 @@ llvm::Constant *CGObjCNonFragileABIMac::EmitIvarList(
                        Field->getType().getTypePtr()) >> 3;
     Align = llvm::Log2_32(Align);
     Ivar[3] = llvm::ConstantInt::get(ObjCTypes.IntTy, Align);
+    // NOTE. Size of a bitfield does not match gcc's, because of the way
+    // bitfields are treated special in each. But I am told that 'size'
+    // for bitfield ivars is ignored by the runtime so it does not matter.
+    // (even if it matters, some day, there is enough info. to get the bitfield
+    // right!
     Ivar[4] = llvm::ConstantInt::get(ObjCTypes.IntTy, Size);
     Ivars.push_back(llvm::ConstantStruct::get(ObjCTypes.IvarnfABITy, Ivar));
   }