summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-10-16 11:52:38 -0700
committerGitHub <noreply@github.com>2025-10-16 18:52:38 +0000
commit0257cb001b6f5c31e4ac0435d546fe638a17c48a (patch)
treec8a291aa21947528fe30b655d8140ddbbb63d010 /tests/preprocessor
parentbedc3421c9e1e0837fa69e30396a27a60f0fee53 (diff)
Fix wrong diagnostic when checking identical casting expr. (#8727)
`SemanticsVisitor::CheckInvokeExprWithCheckedOperands` made several references to `expr` parameter in its `inout` parameter l-value-ness validation logic to access arguments, which is wrong because `expr` is not necessarily the same as `result`/`invoke` (the result of calling `ResolveInvoke()` in the first line of the function. Changing it to `invoke` for consistency. Also add a special case logic to return early in case the resolved invoke expr is `argument[0]` when the original invoke expr is `T(funcThatReturnsT())`. Closes #8659.
Diffstat (limited to 'tests/preprocessor')
0 files changed, 0 insertions, 0 deletions