summaryrefslogtreecommitdiff
path: root/src/synthesis.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-05-11 16:48:51 -0400
committerAdrian Thurston <thurston@colm.net>2018-05-11 16:48:51 -0400
commit64c2a85de70e2d73bef6ae25e4e7c2483d00878f (patch)
tree7b4f1dcbe78be37a55d3ecf593664780f6e51cb3 /src/synthesis.cc
parent316f164db25fac2f2837c7a2a16bca646b2b9cbc (diff)
downloadcolm-64c2a85de70e2d73bef6ae25e4e7c2483d00878f.tar.gz
don't disable parse revert based on what's being manpiulated
Other tests always cause this to come out non-disabled anyways.
Diffstat (limited to 'src/synthesis.cc')
-rw-r--r--src/synthesis.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/synthesis.cc b/src/synthesis.cc
index 2c80110d..d641e9ee 100644
--- a/src/synthesis.cc
+++ b/src/synthesis.cc
@@ -1052,7 +1052,7 @@ void LangVarRef::callOperation( Compiler *pd, CodeVect &code, VarRefLookup &look
if ( isFinishCall( lookup ) ) {
code.append( IN_GET_PARSER_STREAM );
- LangTerm::parseFinish( pd, code, 0, revert );
+ LangTerm::parseFinish( pd, code, 0 );
code.append( IN_GET_STREAM_MEM_R );
code.appendHalf( 0 );
@@ -1442,9 +1442,9 @@ void LangTerm::parseFrag( Compiler *pd, CodeVect &code, int stopId )
}
}
-void LangTerm::parseFinish( Compiler *pd, CodeVect &code, int stopId, bool revert )
+void LangTerm::parseFinish( Compiler *pd, CodeVect &code, int stopId )
{
- if ( pd->revertOn && revert ) {
+ if ( pd->revertOn ) {
code.append( IN_PARSE_LOAD );
code.append( IN_PARSE_FINISH_WV );
code.appendHalf( stopId );
@@ -1629,7 +1629,7 @@ UniqueType *LangTerm::evaluateParse( Compiler *pd, CodeVect &code,
* Finish operation
*/
- parseFinish( pd, code, stopId, true );
+ parseFinish( pd, code, stopId );
/* Pull out the error and save it off. */
code.append( IN_DUP_VAL );
@@ -1725,7 +1725,7 @@ void LangTerm::evaluateSendParser( Compiler *pd, CodeVect &code, bool strings )
}
if ( eof )
- parseFinish( pd, code, 0, true );
+ parseFinish( pd, code, 0 );
}
UniqueType *LangTerm::evaluateSend( Compiler *pd, CodeVect &code ) const