aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-04-15 05:09:28 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-04-15 05:09:28 +0000
commit7fb619500404129322af972aab66c369949a2a74 (patch)
tree7fd41f5c9c2948ac1037ffb6d4cb6799a93a5663 /lib/CodeGen/CGObjCMac.cpp
parent2677261656b2f3325218d38bdd9d102ad732da92 (diff)
IRgen: Eliminate now unused fields from CGBitFieldInfo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--lib/CodeGen/CGObjCMac.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index 1f56bb7e16..a4fb431f8e 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -124,10 +124,9 @@ LValue CGObjCRuntime::EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF,
// layout object. However, this is blocked on other cleanups to the
// Objective-C code, so for now we just live with allocating a bunch of these
// objects.
- unsigned FieldNo = 0; // This value is unused.
CGBitFieldInfo *Info =
- new (CGF.CGM.getContext()) CGBitFieldInfo(
- LTy, FieldNo, BitOffset, BitFieldSize, IvarTy->isSignedIntegerType());
+ new (CGF.CGM.getContext()) CGBitFieldInfo(BitFieldSize,
+ IvarTy->isSignedIntegerType());
// We always construct a single, possibly unaligned, access for this case.
Info->setNumComponents(1);