]> granicus.if.org Git - clang/commitdiff
Fix a missing word in comment
authorAdrian Prantl <aprantl@apple.com>
Tue, 5 Feb 2019 21:21:01 +0000 (21:21 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 5 Feb 2019 21:21:01 +0000 (21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353219 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 98321b0f9d9d349f11c086f7eba4e9572fe936cb..9d502883ed97663ec171e32cd3df59dddd8fc68b 100644 (file)
@@ -450,8 +450,8 @@ CGDebugInfo::createFile(StringRef FileName,
     for (; CurDirIt != CurDirE && *CurDirIt == *FileIt; ++CurDirIt, ++FileIt)
       llvm::sys::path::append(DirBuf, *CurDirIt);
     if (std::distance(llvm::sys::path::begin(CurDir), CurDirIt) == 1) {
-      // The common prefix only the root; stripping it would cause
-      // LLVM diagnostic locations to be more confusing.
+      // Don't strip the common prefix if it is only the root "/"
+      // since that would make LLVM diagnostic locations confusing.
       Dir = {};
       File = RemappedFile;
     } else {