[clang] [CIR][NFCI] Refactor uses of 'mlir::Location' vs 'SourceRange' on calls/etc (PR #222981)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 10:56:11 PDT 2026


================

----------------
andykaylor wrote:

```suggestion
    cgm.errorNYI(loc, "emitScalarInit: captured by init");
```
Would this be a more accurate location? There are a couple of places where this is called with a decl location.

https://github.com/llvm/llvm-project/pull/222981


More information about the cfe-commits mailing list