[ORE] Use const CodeRegions in the remark diagnostics. NFC.

llvm-svn: 296008
2 files changed