[analyzer] Fix IssueHash generation.

Differential Revision: http://reviews.llvm.org/D14919 

Original patch by: Gyorgy Orban!

llvm-svn: 254394
This commit is contained in:
Gabor Horvath
2015-12-01 09:00:41 +00:00
parent b4a0927853
commit fe2c0ff942
8 changed files with 25 additions and 20 deletions

View File

@@ -1717,7 +1717,7 @@ SourceLocation SourceManager::translateLineCol(FileID FID,
unsigned Col) const {
// Lines are used as a one-based index into a zero-based array. This assert
// checks for possible buffer underruns.
assert(Line != 0 && "Passed a zero-based line");
assert(Line && Col && "Line and column should start from 1!");
if (FID.isInvalid())
return SourceLocation();