Skip to content

[luci/lang] Fix exception throw for invalid data type#16429

Merged
mhs4670go merged 1 commit intoSamsung:masterfrom
arkq:fix-luci-lang
Mar 10, 2026
Merged

[luci/lang] Fix exception throw for invalid data type#16429
mhs4670go merged 1 commit intoSamsung:masterfrom
arkq:fix-luci-lang

Conversation

@arkq
Copy link
Contributor

@arkq arkq commented Mar 10, 2026

This commit fixes a typo causing the exception not being thrown.

This commit fixes a typo causing the exception not being thrown.

ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy <a.bokowy@samsung.com>
Copilot AI review requested due to automatic review settings March 10, 2026 08:04
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a bug in luci IR sparsity handling where invalid SparseIndexVectorType values did not actually throw an exception, ensuring callers get a runtime error instead of silently continuing.

Changes:

  • Add missing throw for std::runtime_error("Invalid SparseIndexVectorType") in both SparseIndexVector constructors’ default switch cases.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@mhs4670go mhs4670go left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mhs4670go mhs4670go merged commit e58f9ba into Samsung:master Mar 10, 2026
11 checks passed
@arkq arkq deleted the fix-luci-lang branch March 10, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants