Simplify module flags copying and defaults handling (#61749)
Both `OverrideStackAlignment` and `getStackProtectorGuard` are ModuleFlags and should already be copied over, but `m->setStackProtectorGuard(source->getStackProtectorGuard());` will set the stack-protector flag to be the empty string. Instead, we can copy the flags over from the source and then if they are missing, initialize them to the expected ones.
V
Valentin Churavy committed
9958ed3db1af925eafbe91e5cd80f37859050059
Parent: 5f9e892
Committed by GitHub <noreply@github.com>
on 5/9/2026, 10:10:06 AM