Skip to content
Snippets Groups Projects
Commit 2a8ce029 authored by Matthew McGill's avatar Matthew McGill
Browse files

Added case for 0 slow path insns needed

parent 62e0a8df
No related branches found
No related tags found
No related merge requests found
......@@ -350,6 +350,11 @@ Instruction_t* NonceRelocs_t::MakeSlowPathComparesDyn(string reg, Instruction_t*
{
// sanity
assert(m_elfio.get_type() == ET_DYN);
if(slow_path_nonces.size() == 0)
{
return exit_node;
}
assert(reg=="r11");
assert(m_firp.GetArchitectureBitWidth()==64); // need diff. solution for 32-bit.
......@@ -471,6 +476,10 @@ Instruction_t* NonceRelocs_t::layoutComparesExec(
Instruction_t* NonceRelocs_t::MakeSlowPathComparesExec(string reg, Instruction_t* exit_node)
{
assert(m_elfio.get_type() == ET_EXEC);
if(slow_path_nonces.size() == 0)
{
return exit_node;
}
const auto start=size_t(0), end=slow_path_nonces.size()-1;
auto slow_path_nonces_vec=vector<Instruction_t*>(ALLOF(slow_path_nonces));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment