summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2015-12-01 09:00:41 +0000
committerGabor Horvath <xazax.hun@gmail.com>2015-12-01 09:00:41 +0000
commitfe2c0ff942e8c9f407b2e669d366eb855ba0e127 (patch)
tree84ee9c786953ecccbed0a18c36864ad444d42650 /clang/lib/Basic/SourceManager.cpp
parentb4a09278533a26371d89572f376bb75ff605240b (diff)
downloadbcm5719-llvm-fe2c0ff942e8c9f407b2e669d366eb855ba0e127.tar.gz
bcm5719-llvm-fe2c0ff942e8c9f407b2e669d366eb855ba0e127.zip
[analyzer] Fix IssueHash generation.
Differential Revision: http://reviews.llvm.org/D14919 Original patch by: Gyorgy Orban! llvm-svn: 254394
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r--clang/lib/Basic/SourceManager.cpp2
1 files changed, 1 insertions, 1 deletions
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();
OpenPOWER on IntegriCloud