aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-04 08:54:23 -0700
committerGitHub <noreply@github.com>2024-08-04 08:54:23 -0700
commit7df9da7d780f1ece175020c5aef44b4b06df05b7 (patch)
tree6592badbd9bbc7ca877249d16f5685d6e6b34129 /llvm/lib/Support/SourceMgr.cpp
parent2e9d2f183f1c4e458201d05e4dea96249f8a8f65 (diff)
downloadllvm-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.cpp2
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);
}