CVE-2024-31852: Llvm Local Calleesavedinfo Clearcve-2024-31852-llvm-local-calleesavedinfo-clear
Unconditionally clearing the 'Restored' flag of a register in CalleeSavedInfo during local block optimization can lead to miscompilation. CalleeSavedInfo represents global function state; modifying it locally without verifying all function paths (e.g., other return blocks) may cause registers to be left unrestored, leading to control-flow errors or crashes.