Unbalanced store/compare can be usage error; diagnose, not assert.

This commit is contained in:
Axel Naumann 2015-06-07 19:45:44 +02:00 committed by sftnight
parent bfa9947c5a
commit 926f9072ea

View File

@ -377,7 +377,11 @@ namespace cling {
break;
}
}
assert(foundAtPos>-1 && "The name doesnt exist. Unbalanced store/compare");
if (foundAtPos < 0) {
llvm::errs() << "The store point name " << name << " does not exist."
"Unbalanced store / compare\n";
return;
}
// This may induce deserialization
PushTransactionRAII RAII(this);