aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/llvm/lib/Support/FileCollector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Support/FileCollector.cpp')
-rw-r--r--contrib/llvm-project/llvm/lib/Support/FileCollector.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Support/FileCollector.cpp b/contrib/llvm-project/llvm/lib/Support/FileCollector.cpp
index 5854baeebbb9..c0ce6b5d74e8 100644
--- a/contrib/llvm-project/llvm/lib/Support/FileCollector.cpp
+++ b/contrib/llvm-project/llvm/lib/Support/FileCollector.cpp
@@ -50,7 +50,9 @@ static bool isCaseSensitivePath(StringRef Path) {
}
FileCollector::FileCollector(std::string Root, std::string OverlayRoot)
- : Root(std::move(Root)), OverlayRoot(std::move(OverlayRoot)) {
+ : Root(Root), OverlayRoot(OverlayRoot) {
+ assert(sys::path::is_absolute(Root) && "Root not absolute");
+ assert(sys::path::is_absolute(OverlayRoot) && "OverlayRoot not absolute");
}
void FileCollector::PathCanonicalizer::updateWithRealPath(