From 7df9da7d780f1ece175020c5aef44b4b06df05b7 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 4 Aug 2024 08:54:23 -0700 Subject: [llvm] Construct SmallVector with ArrayRef (NFC) (#101872) --- llvm/lib/Support/SourceMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/SourceMgr.cpp') diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index 6eaa878..3f97213 100644 --- a/llvm/lib/Support/SourceMgr.cpp +++ b/llvm/lib/Support/SourceMgr.cpp @@ -382,7 +382,7 @@ SMDiagnostic::SMDiagnostic(const SourceMgr &sm, SMLoc L, StringRef FN, int Line, ArrayRef Hints) : SM(&sm), Loc(L), Filename(std::string(FN)), LineNo(Line), ColumnNo(Col), Kind(Kind), Message(Msg), LineContents(LineStr), Ranges(Ranges.vec()), - FixIts(Hints.begin(), Hints.end()) { + FixIts(Hints) { llvm::sort(FixIts); } -- cgit v1.1