diff --git a/clang/include/clang/Analysis/FlowSensitive/DebugSupport.h b/clang/include/clang/Analysis/FlowSensitive/DebugSupport.h --- a/clang/include/clang/Analysis/FlowSensitive/DebugSupport.h +++ b/clang/include/clang/Analysis/FlowSensitive/DebugSupport.h @@ -46,7 +46,7 @@ /// /// Names assigned to atoms should not be repeated in `AtomNames`. std::string debugString( - const std::vector &Constraints, const Solver::Result &Result, + ArrayRef Constraints, const Solver::Result &Result, llvm::DenseMap AtomNames = {{}}); inline std::string debugString( const llvm::DenseSet &Constraints, diff --git a/clang/lib/Analysis/FlowSensitive/DebugSupport.cpp b/clang/lib/Analysis/FlowSensitive/DebugSupport.cpp --- a/clang/lib/Analysis/FlowSensitive/DebugSupport.cpp +++ b/clang/lib/Analysis/FlowSensitive/DebugSupport.cpp @@ -82,7 +82,7 @@ /// Returns a string representation of a set of boolean `Constraints` and the /// `Result` of satisfiability checking on the `Constraints`. - std::string debugString(const std::vector &Constraints, + std::string debugString(ArrayRef &Constraints, const Solver::Result &Result) { auto Template = R"( Constraints @@ -185,8 +185,7 @@ } std::string -debugString(const std::vector &Constraints, - const Solver::Result &Result, +debugString(ArrayRef Constraints, const Solver::Result &Result, llvm::DenseMap AtomNames) { return DebugStringGenerator(std::move(AtomNames)) .debugString(Constraints, Result);