<div dir="ltr">Could anyone review this?<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 4:17 PM, Alexander Kornienko <span dir="ltr"><<a href="mailto:alexfh@google.com" target="_blank">alexfh@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi rsmith,<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D1183" target="_blank">http://llvm-reviews.chandlerc.com/D1183</a><br>
<br>
Files:<br>
  lib/Basic/SourceManager.cpp<br>
<br>
Index: lib/Basic/SourceManager.cpp<br>
===================================================================<br>
--- lib/Basic/SourceManager.cpp<br>
+++ lib/Basic/SourceManager.cpp<br>
@@ -1732,7 +1732,7 @@<br>
   const SLocEntry &Entry = getSLocEntry(FID, &Invalid);<br>
   if (Invalid)<br>
     return SourceLocation();<br>
-<br>
+<br>
   if (!Entry.isFile())<br>
     return SourceLocation();<br>
<br>
@@ -1745,7 +1745,7 @@<br>
     = const_cast<ContentCache *>(Entry.getFile().getContentCache());<br>
   if (!Content)<br>
     return SourceLocation();<br>
-<br>
+<br>
   // If this is the first use of line information for this buffer, compute the<br>
   // SourceLineCache for it on demand.<br>
   if (Content->SourceLineCache == 0) {<br>
@@ -1774,10 +1774,7 @@<br>
   // Check that the given column is valid.<br>
   while (i < BufLength-1 && i < Col-1 && Buf[i] != '\n' && Buf[i] != '\r')<br>
     ++i;<br>
-  if (i < Col-1)<br>
-    return FileLoc.getLocWithOffset(FilePos + i);<br>
-<br>
-  return FileLoc.getLocWithOffset(FilePos + Col - 1);<br>
+  return FileLoc.getLocWithOffset(FilePos + i);<br>
 }<br>
<br>
 /// \brief Compute a map of macro argument chunks to their expanded source<br>
</blockquote></div><br>
</div></div>