diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-08-15 13:10:46 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-08-15 13:10:46 +0000 |
commit | d62c9a697b53f9e754926a89126fd121220ed09b (patch) | |
tree | 1d8487daca8b7c6fc4da44210cb233853a89824e /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 4af85b2328d432960371efeb092a70a8d9c25227 (diff) |
Don't setCalleeSavedInfoValid() until spills are interted.
In a naked function, the flag is never set and getPristineRegs() returns an
empty list. That means naked functions are able to clobber callee saved
registers, but that is the whole point of naked functions.
This fixes PR4716.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79096 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
0 files changed, 0 insertions, 0 deletions