[analyzer] Fix IssueHash generation.
Differential Revision: http://reviews.llvm.org/D14919 Original patch by: Gyorgy Orban! llvm-svn: 254394
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user