mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
d62c9a697b
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
11 lines
241 B
LLVM
11 lines
241 B
LLVM
; RUN: llvm-as < %s | llc -march=arm
|
|
; PR4716
|
|
|
|
define arm_aapcscc void @_start() nounwind naked {
|
|
entry:
|
|
tail call arm_aapcscc void @exit(i32 undef) noreturn nounwind
|
|
unreachable
|
|
}
|
|
|
|
declare arm_aapcscc void @exit(i32) noreturn nounwind
|