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 87229d80d9c15a2463f85341b16b4193c0c7d1e4..6f660e968e8a620bb764c3418165f21a9c689b96 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);
   }