mirror of https://github.com/YosysHQ/yosys.git
Fixed O(n^2) performance bug in verilog preprocessor
This commit is contained in:
parent
058ceda6a0
commit
a362fd81ae
|
@ -62,7 +62,7 @@ static void insert_input(std::string str)
|
|||
|
||||
static char next_char()
|
||||
{
|
||||
if (input_buffer.size() == 0)
|
||||
if (input_buffer.empty())
|
||||
return 0;
|
||||
|
||||
assert(input_buffer_charp <= input_buffer.front().size());
|
||||
|
|
Loading…
Reference in New Issue