File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,10 @@ bool AbsolutePathRef::isNormalized() const {
78
78
return true ;
79
79
}
80
80
81
- void AbsolutePathRef::normalize (llvm::SmallVectorImpl<char > &newStorage) {
81
+ void AbsolutePathRef::normalize (llvm::SmallVectorImpl<char > &newStorage) const {
82
82
newStorage.clear ();
83
83
newStorage.append (this ->asStringView ().begin (), this ->asStringView ().end ());
84
84
llvm::sys::path::remove_dots (newStorage);
85
- *this =
86
- AbsolutePathRef (std::string_view (newStorage.data (), newStorage.size ()));
87
85
}
88
86
89
87
std::optional<AbsolutePathRef> AbsolutePathRef::prefix () const {
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class AbsolutePathRef {
78
78
79
79
bool isNormalized () const ;
80
80
81
- void normalize (llvm::SmallVectorImpl<char > &newStorage);
81
+ void normalize (llvm::SmallVectorImpl<char > &newStorage) const ;
82
82
83
83
PathPrefixIterator<AbsolutePathRef> prefixesBegin () const {
84
84
return PathPrefixIterator<AbsolutePathRef>{*this };
You can’t perform that action at this time.
0 commit comments