Expand on the safeness of restoring the sp from the fp a bit more.
authorEric Christopher <echristo@apple.com>
Mon, 10 Jan 2011 23:10:59 +0000 (23:10 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 10 Jan 2011 23:10:59 +0000 (23:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123193 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFrameLowering.cpp

index 824538ccd79dd4cf8ded64dc7014ea50b5d02c11..adff2399c78fe762d892835ac740778f4b7187a6 100644 (file)
@@ -288,7 +288,8 @@ void ARMFrameLowering::emitPrologue(MachineFunction &MF) const {
   }
 
   // If the frame has variable sized objects then the epilogue must restore
-  // the sp from fp.
+  // the sp from fp. We can assume there's an FP here since hasFP already
+  // checks for hasVarSizedObjects.
   if (MFI->hasVarSizedObjects())
     AFI->setShouldRestoreSPFromFP(true);
 }