]> granicus.if.org Git - clang/commitdiff
Minor refactoring. No change in functionality.
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 24 Apr 2009 17:15:27 +0000 (17:15 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 24 Apr 2009 17:15:27 +0000 (17:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69979 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index 6caaad6ffe14a9a2c34764a29c475e33176920fd..7bcb82b6cb35cd1179bb2abd164084cc76f8fcf3 100644 (file)
@@ -729,7 +729,6 @@ protected:
   // gc ivar layout bitmap calculation helper caches.
   llvm::SmallVector<GC_IVAR, 16> SkipIvars;
   llvm::SmallVector<GC_IVAR, 16> IvarsInfo;
-  llvm::SmallVector<SKIP_SCAN, 32> SkipScanIvars;
   
   /// LazySymbols - Symbols to generate a lazy reference for. See
   /// DefinedSymbols and FinishModule().
@@ -3156,7 +3155,7 @@ llvm::Constant *CGObjCCommonMac::BuildIvarLayout(
     std::sort(SkipIvars.begin(), SkipIvars.end());
       
   // Build the string of skip/scan nibbles
-  SkipScanIvars.clear();
+  llvm::SmallVector<SKIP_SCAN, 32> SkipScanIvars;
   unsigned int WordSize = 
     CGM.getTypes().getTargetData().getTypePaddedSize(PtrTy);
   if (IvarsInfo[0].ivar_bytepos == 0) {