summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-02-05 21:21:01 +0000
committerAdrian Prantl <aprantl@apple.com>2019-02-05 21:21:01 +0000
commit0feb7b76e287aca745bfbfa8377a1ffa626f71c6 (patch)
treef800b9403fa86833f72e969039015df17f2691d2
parentf38bc4fc999cf85ccdc6de6c5e9f5633dd28c552 (diff)
downloadbcm5719-llvm-0feb7b76e287aca745bfbfa8377a1ffa626f71c6.tar.gz
bcm5719-llvm-0feb7b76e287aca745bfbfa8377a1ffa626f71c6.zip
Fix a missing word in comment
llvm-svn: 353219
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 98321b0f9d9..9d502883ed9 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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 {
OpenPOWER on IntegriCloud