Fix AllocationFailure when multiple instances

This commit is contained in:
Léa Saviot
2018-06-28 17:59:06 +02:00
parent bd61298374
commit cb77fbe2ff
10 changed files with 133 additions and 39 deletions

View File

@@ -6,3 +6,8 @@ TreeNode * ExpressionRef::failedAllocationNode() {
static AllocationFailedExpressionRef FailureRef;
return FailureRef.node();
}
template<>
ExpressionReference<ExpressionNode> ExpressionRef::failedAllocationRef() {
return ExpressionReference<ExpressionNode>(failedAllocationNode());
}