If __builtin_frame_address or __builtin_return_address is invoked with
non-zero argument, show an error message instead of a crash.
Reference: https://reviews.llvm.org/rG83b88441ad951fe99c30402930ef3cd661f2fd2b
Paths
| Differential D136917
[LoongArch] Replace assertion by error message while lowering RETURNADDR and FRAMEADDR ClosedPublic Authored by gonglingqin on Oct 27 2022, 11:36 PM.
Details Summary If __builtin_frame_address or __builtin_return_address is invoked with Reference: https://reviews.llvm.org/rG83b88441ad951fe99c30402930ef3cd661f2fd2b
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 27 2022, 11:44 PM
Closed by commit rGbe8a2b98da58: [LoongArch] Replace assertion by error message while lowering RETURNADDR and… (authored by gonglingqin). · Explain WhyOct 30 2022, 6:43 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 471407 llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/test/CodeGen/LoongArch/frameaddr-returnaddr-error.ll
|
nit: "for the current frame"?