[PATCH] D17294: Fix for PR 26500

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 12:07:14 PST 2016


nemanjai updated this revision to Diff 48382.
nemanjai added a comment.

I forgot one change:

- If the second scratch register is not available, find_next will return -1

Of course, this should never happen if the caller provides the correct argument for Needs2ScratchRegs (we will have returned before getting here). However, assuming the caller incorrectly sets the argument, we don't want to return some huge register number.


Repository:
  rL LLVM

http://reviews.llvm.org/D17294

Files:
  lib/Target/PowerPC/PPCFrameLowering.cpp
  lib/Target/PowerPC/PPCFrameLowering.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17294.48382.patch
Type: text/x-patch
Size: 13423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160218/93f772f0/attachment.bin>


More information about the llvm-commits mailing list