diff --git a/compiler/luci/lang/include/luci/IR/SparsityParam.h b/compiler/luci/lang/include/luci/IR/SparsityParam.h index 15ddeb17cff..6d72174a1ca 100644 --- a/compiler/luci/lang/include/luci/IR/SparsityParam.h +++ b/compiler/luci/lang/include/luci/IR/SparsityParam.h @@ -77,7 +77,7 @@ class SparseIndexVector break; } default: - std::runtime_error("Invalid SparseIndexVectorType"); + throw std::runtime_error("Invalid SparseIndexVectorType"); } } @@ -109,7 +109,7 @@ class SparseIndexVector break; } default: - std::runtime_error("Invalid SparseIndexVectorType"); + throw std::runtime_error("Invalid SparseIndexVectorType"); } }