Skip to content

Commit

Permalink
Fix tidy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Dec 10, 2023
1 parent 31ff79f commit 555834c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/programmemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ namespace {
explicit Executor(ProgramMemory* pm = nullptr, const Settings* settings = nullptr) : pm(pm), settings(settings) {}

std::unordered_map<nonneg int, ValueFlow::Value> executeAll(const std::vector<const Token*>& toks,
bool* b = nullptr) const
const bool* b = nullptr) const
{
std::unordered_map<nonneg int, ValueFlow::Value> result;
auto state = *this;
Expand Down Expand Up @@ -1326,7 +1326,6 @@ namespace {
if (isTrueOrFalse(v, b))
return v;
allNegated &= isTrueOrFalse(v, !b);
;
if (allNegated && negatedValue.isUninitValue())
negatedValue = v;
}
Expand Down

0 comments on commit 555834c

Please sign in to comment.