Integrate LLVM at llvm/llvm-project@d54bd7aced8b
Updates LLVM usage to match
[d54bd7aced8b](https://github.com/llvm/llvm-project/commit/d54bd7aced8b)
PiperOrigin-RevId: 543606213
diff --git a/nullability/inference/resolve_constraints.cc b/nullability/inference/resolve_constraints.cc
index 56c357c..1dc28b4 100644
--- a/nullability/inference/resolve_constraints.cc
+++ b/nullability/inference/resolve_constraints.cc
@@ -16,14 +16,18 @@
bool isSatisfiable(
const llvm::DenseSet<clang::dataflow::BoolValue*>& ConstraintSet) {
clang::dataflow::WatchedLiteralsSolver Solver;
- return Solver.solve(ConstraintSet).getStatus() ==
+ std::vector<clang::dataflow::BoolValue*> Vec(ConstraintSet.begin(),
+ ConstraintSet.end());
+ return Solver.solve(Vec).getStatus() ==
clang::dataflow::Solver::Result::Status::Satisfiable;
}
bool isUnsatisfiable(
const llvm::DenseSet<clang::dataflow::BoolValue*>& ConstraintSet) {
clang::dataflow::WatchedLiteralsSolver Solver;
- return Solver.solve(ConstraintSet).getStatus() ==
+ std::vector<clang::dataflow::BoolValue*> Vec(ConstraintSet.begin(),
+ ConstraintSet.end());
+ return Solver.solve(Vec).getStatus() ==
clang::dataflow::Solver::Result::Status::Unsatisfiable;
}
} // namespace