From: Adrian Prantl Date: Tue, 5 Feb 2019 21:21:01 +0000 (+0000) Subject: Fix a missing word in comment X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1dff721f04b63a0b1dd959782408dae3271fbc3;p=clang Fix a missing word in comment git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353219 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 98321b0f9d..9d502883ed 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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 {