diff options
author | Kazu Hirata <kazu@google.com> | 2024-08-04 08:54:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-04 08:54:23 -0700 |
commit | 7df9da7d780f1ece175020c5aef44b4b06df05b7 (patch) | |
tree | 6592badbd9bbc7ca877249d16f5685d6e6b34129 /llvm/lib/Support/SourceMgr.cpp | |
parent | 2e9d2f183f1c4e458201d05e4dea96249f8a8f65 (diff) | |
download | llvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.zip llvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.tar.gz llvm-7df9da7d780f1ece175020c5aef44b4b06df05b7.tar.bz2 |
[llvm] Construct SmallVector with ArrayRef (NFC) (#101872)
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r-- | llvm/lib/Support/SourceMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<SMFixIt> 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); } |