[cfe-commits] r70674 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Daniel Dunbar
daniel at zuster.org
Sun May 3 00:52:00 PDT 2009
Author: ddunbar
Date: Sun May 3 02:52:00 2009
New Revision: 70674
URL: http://llvm.org/viewvc/llvm-project?rev=70674&view=rev
Log:
Use type from ivar instead of from shadow struct field.
- No functionality change.
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=70674&r1=70673&r2=70674&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Sun May 3 02:52:00 2009
@@ -126,12 +126,12 @@
V = CGF.Builder.CreateBitCast(V, ptrIvarTy);
if (Ivar->isBitField()) {
- QualType FieldTy = Field->getType();
+ QualType IvarTy = Ivar->getType();
CodeGenTypes::BitFieldInfo bitFieldInfo =
CGF.CGM.getTypes().getBitFieldInfo(Field);
return LValue::MakeBitfield(V, bitFieldInfo.Begin % 8, bitFieldInfo.Size,
- FieldTy->isSignedIntegerType(),
- FieldTy.getCVRQualifiers()|CVRQualifiers);
+ IvarTy->isSignedIntegerType(),
+ IvarTy.getCVRQualifiers()|CVRQualifiers);
}
LValue LV = LValue::MakeAddr(V,
More information about the cfe-commits
mailing list