From fe2c0ff942e8c9f407b2e669d366eb855ba0e127 Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Tue, 1 Dec 2015 09:00:41 +0000 Subject: [analyzer] Fix IssueHash generation. Differential Revision: http://reviews.llvm.org/D14919 Original patch by: Gyorgy Orban! llvm-svn: 254394 --- clang/lib/Basic/SourceManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Basic/SourceManager.cpp') diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index 80a003fc932..4c501616a3e 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -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(); -- cgit v1.2.3