Skip to content

Commit e58f9ba

Browse files
authored
[luci/lang] Fix exception throw for invalid data type (#16429)
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 6a868a9 commit e58f9ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/luci/lang/include/luci/IR/SparsityParam.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class SparseIndexVector
7777
break;
7878
}
7979
default:
80-
std::runtime_error("Invalid SparseIndexVectorType");
80+
throw std::runtime_error("Invalid SparseIndexVectorType");
8181
}
8282
}
8383

@@ -109,7 +109,7 @@ class SparseIndexVector
109109
break;
110110
}
111111
default:
112-
std::runtime_error("Invalid SparseIndexVectorType");
112+
throw std::runtime_error("Invalid SparseIndexVectorType");
113113
}
114114
}
115115

0 commit comments

Comments
 (0)