[llvm] [CFIInserter] Improve `CSRSavedLocation` struct. (PR #168869)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 07:30:35 PST 2025
================
@@ -266,12 +315,20 @@ void CFIInstrInserter::calculateOutgoingCFAInfo(MBBCFAInfo &MBBInfo) {
case MCCFIInstruction::OpValOffset:
break;
}
- if (CSRReg || CSROffset) {
+ CSRSavedLocation CSRLoc;
+ if (CSRReg) {
+ CSRLoc.K = CSRSavedLocation::Kind::REGISTER;
+ CSRLoc.setRegister(*CSRReg);
----------------
s-barannikov wrote:
There should be a factory method or a constructor for this
https://github.com/llvm/llvm-project/pull/168869
More information about the llvm-commits
mailing list