From 614ca0accf3c825f0df0a8e532db892b68764442 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Fri, 27 May 2016 11:11:04 +1000 Subject: [PATCH] rose: always push CHECK_BOUNDS onto end of program --- src/rose/rose_build_bytecode.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index 1b00b4b5..758dd442 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -3010,13 +3010,7 @@ void makeRoleCheckBounds(const RoseBuildImpl &build, RoseVertex v, ri.u.checkBounds.min_bound = min_bound; ri.u.checkBounds.max_bound = max_bound; - // This precondition instruction should go near the start of - // the program, after the ONLY_EOD check if it's present. - auto it = - find_if(begin(program), end(program), [](const RoseInstruction &ri) { - return ri.code() > ROSE_INSTR_CHECK_ONLY_EOD; - }); - program.insert(it, ri); + program.push_back(move(ri)); } static