Skip to content

Commit

Permalink
fix(verifier): flat_hash_map + fix spurious warning (#5671)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrlk committed May 31, 2023
1 parent beb2f6a commit eaf9db8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions kythe/cxx/verifier/BUILD
Expand Up @@ -93,6 +93,7 @@ cc_library(
],
deps = [
":lexparse",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/strings",
],
)
Expand Down
5 changes: 4 additions & 1 deletion kythe/cxx/verifier/verifier.cc
Expand Up @@ -1157,7 +1157,10 @@ bool Verifier::ProcessFactTupleForFastSolver(Tuple* tuple) {
}

bool Verifier::PrepareDatabase() {
if (database_prepared_ || use_fast_solver_) {
if (database_prepared_) {
return true;
}
if (use_fast_solver_) {
LOG(WARNING) << "PrepareDatabase() called when fast solver was enabled";
return true;
}
Expand Down

0 comments on commit eaf9db8

Please sign in to comment.