OSDN Git Service

Fix -Wunused-but-set-variable warning by removing unused 'aggregateIsPacked' checking
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 22 Feb 2017 13:37:31 +0000 (13:37 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 22 Feb 2017 13:37:31 +0000 (13:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295830 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/NVPTX/NVPTXISelLowering.cpp

index d18c7de..27d9f34 100644 (file)
@@ -2397,10 +2397,6 @@ NVPTXTargetLowering::LowerReturn(SDValue Chain, CallingConv::ID CallConv,
   // they are signed or unsigned types.
   bool ExtendIntegerRetVal =
       RetTy->isIntegerTy() && DL.getTypeAllocSizeInBits(RetTy) < 32;
-  bool aggregateIsPacked = false;
-
-  if (StructType *STy = dyn_cast<StructType>(RetTy))
-    aggregateIsPacked = STy->isPacked();
 
   SmallVector<SDValue, 6> StoreOperands;
   for (unsigned i = 0, e = Outs.size(); i != e; ++i) {