summaryrefslogtreecommitdiff
path: root/src/declare.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/declare.cc')
-rw-r--r--src/declare.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declare.cc b/src/declare.cc
index 167fe050..342ffd65 100644
--- a/src/declare.cc
+++ b/src/declare.cc
@@ -110,7 +110,7 @@ void Compiler::declareBaseLangEls()
void Compiler::addProdRedObjectVar( ObjectDef *localFrame, LangEl *nonTerm )
{
UniqueType *prodNameUT = findUniqueType( TYPE_TREE, nonTerm );
- TypeRef *typeRef = new TypeRef( InputLoc(), prodNameUT );
+ TypeRef *typeRef = TypeRef::cons( InputLoc(), prodNameUT );
ObjField *el = new ObjField( InputLoc(), typeRef, "lhs" );
el->isLhsEl = true;