Skip to content

[compiler] Fix exception throw in the deprecated code#16484

Merged
mhs4670go merged 1 commit into
Samsung:masterfrom
arkq:throw-patch-3
Apr 21, 2026
Merged

[compiler] Fix exception throw in the deprecated code#16484
mhs4670go merged 1 commit into
Samsung:masterfrom
arkq:throw-patch-3

Conversation

@arkq
Copy link
Copy Markdown
Contributor

@arkq arkq commented Apr 20, 2026

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

It is the last PR in a series to fix all occurrences of missing throw when runtime exception should be thrown: git grep ' std::runtime_error'.

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 April 20, 2026 07:42
Copy link
Copy Markdown

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

This PR fixes a bug in the deprecated mir2loco transformer where an exception object was constructed but never thrown, allowing unsupported constant data types to proceed silently.

Changes:

  • Replace std::runtime_error(...) construction with throw std::runtime_error(...) in the ConstantOp dtype switch default case.

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

Copy link
Copy Markdown
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 6d7ce02 into Samsung:master Apr 21, 2026
10 checks passed
@arkq arkq deleted the throw-patch-3 branch April 21, 2026 05:59
@hseok-oh
Copy link
Copy Markdown
Contributor

Please don't update deprecated code

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