Skip to content

Commit 6d7ce02

Browse files
authored
[compiler] Fix exception throw in the deprecated code (#16484)
This commit fixes a typo causing the exception not being thrown. ONE-DCO-1.0-Signed-off-by: Arkadiusz Bokowy <a.bokowy@samsung.com>
1 parent 95fba2d commit 6d7ce02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/_deprecated/mir2loco/src/mir2loco.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ void Transformer::visit(mir::ops::ConstantOp &op)
395395
break;
396396
}
397397
default:
398-
std::runtime_error("Unsupported data type");
398+
throw std::runtime_error("Unsupported data type");
399399
}
400400
// Add to map
401401
_mir2loco_map.emplace(op.getOutput(0), const_node);

0 commit comments

Comments
 (0)