PowerPC: remove dead initialization (NFC)
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 14 Aug 2015 03:48:35 +0000 (03:48 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 14 Aug 2015 03:48:35 +0000 (03:48 +0000)
Identified by the clang static analyzer.  No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245022 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCFrameLowering.cpp

index 87229d8..6f660e9 100644 (file)
@@ -1201,8 +1201,7 @@ void PPCFrameLowering::determineCalleeSaves(MachineFunction &MF,
   // Reserve stack space for the PIC Base register (R30).
   // Only used in SVR4 32-bit.
   if (FI->usesPICBase()) {
-    int PBPSI = FI->getPICBasePointerSaveIndex();
-    PBPSI = MFI->CreateFixedObject(4, -8, true);
+    int PBPSI = MFI->CreateFixedObject(4, -8, true);
     FI->setPICBasePointerSaveIndex(PBPSI);
   }