summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-22 14:08:43 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-22 14:08:43 +0100
commita362fd81ae450a263d8b65983d6f84e46247f722 (patch)
tree73679a98774bcfb478ce5b01b6838ba947e5705f
parent058ceda6a0e955539d4439fc8fcf53ebf2787331 (diff)
Fixed O(n^2) performance bug in verilog preprocessor
-rw-r--r--frontends/verilog/preproc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/verilog/preproc.cc b/frontends/verilog/preproc.cc
index 9f824526..8d435d94 100644
--- a/frontends/verilog/preproc.cc
+++ b/frontends/verilog/preproc.cc
@@ -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());