mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
8f6660c417
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. llvm-svn: 79096
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
|