summaryrefslogtreecommitdiffstats
path: root/clang/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
commitbb13845c5f6fc61888092b455e9616bbbebcffb7 (patch)
tree6b701a8377340ce730a59616c903fca814ab3b08 /clang/lib/CodeGen/CGObjCMac.cpp
parent4041ab6e007201a69128886d6942416f2ce04e97 (diff)
downloadbcm5719-llvm-bb13845c5f6fc61888092b455e9616bbbebcffb7.tar.gz
bcm5719-llvm-bb13845c5f6fc61888092b455e9616bbbebcffb7.zip
IRgen: Eliminate now unused fields from CGBitFieldInfo.
llvm-svn: 101344
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index 1f56bb7e168..a4fb431f8ed 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud