mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare] Replaced an escape case with an assert only
Change-Id: I5ea501beeb42577a25dd752f8b9492210abd38fc
This commit is contained in:
committed by
EmilieNumworks
parent
73b5b0775a
commit
04b2683af2
@@ -73,11 +73,7 @@ Expression SymbolAbstract::Expand(const SymbolAbstract & symbol, Context * conte
|
||||
{
|
||||
return clone ? symbol.clone() : *const_cast<SymbolAbstract *>(&symbol);
|
||||
}
|
||||
if (context == nullptr) {
|
||||
// A context is required
|
||||
assert(false);
|
||||
return Undefined::Builder();
|
||||
}
|
||||
assert(context);
|
||||
Expression e = context->expressionForSymbolAbstract(symbol, clone);
|
||||
/* Replace all the symbols iteratively. This prevents a memory failure when
|
||||
* symbols are defined circularly. */
|
||||
|
||||
Reference in New Issue
Block a user