fix(runtime): add missing assert on context BSK.

This commit is contained in:
Antoniu Pop
2022-02-28 11:03:07 +00:00
committed by Antoniu Pop
parent 05059e8165
commit f3fca58efc

View File

@@ -31,6 +31,9 @@ get_bootstrap_key(mlir::concretelang::RuntimeContext *context) {
std::string threadName = hpx::get_thread_name();
auto bskIt = context->bsk.find(threadName);
if (bskIt == context->bsk.end()) {
assert((bskIt = context->bsk.find(RuntimeContext::BASE_CONTEXT_BSK)) !=
context->bsk.end() &&
bskIt->second && "No BASE_CONTEXT_BSK registered in context.");
bskIt = context->bsk
.insert(std::pair<std::string, LweBootstrapKey_u64 *>(
threadName,