Actually, a better change would be to simply change cast<VarRegion>(MR) to VR
Addressed comment.
LGTM, provided it compiles and tests run (ninja check-clang)
In D44804#1046086, @george.karpenkov wrote: LGTM, provided it compiles and tests run (ninja check-clang)
Thanks! Yes, I have already verified it compiles and ninja check-clang is clean.
This seems to already have been fixed in r327802. Abandoning this patch.