Change signature of TargetLowering::getRoundingControlRegisters so that
it returns ArrayRef, not plain pointer.
Details
Details
- Reviewers
efriedma pengfei - Commits
- rGc6795b1d37ce: Use ArrayRef instead of raw pointers. NFC
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LG.
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | ||
---|---|---|
14950–14951 | Maybe return {AArch64::FPCR};? | |
llvm/lib/Target/X86/X86ISelLowering.cpp | ||
3103 | ditto. |
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | ||
---|---|---|
14950–14951 | I'm pretty sure return {AArch64::FPCR}; would be a use-after-free. (It allocates an std::initializer_list on the stack, then returns a reference to it.) |
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | ||
---|---|---|
14950–14951 | Thanke @efriedma! You are right https://godbolt.org/z/ar7rd7v8M |
Maybe return {AArch64::FPCR};?