summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/SourceManager.cpp
diff options
context:
space:
mode:
authorStephane Sezer <sas@cd80.net>2015-08-26 23:55:14 +0000
committerStephane Sezer <sas@cd80.net>2015-08-26 23:55:14 +0000
commit03439a87cfd3988c37d2677e8b8f89a72a0e2ca4 (patch)
tree35834f72d520f5e35c1e2759a54b56065f7d1958 /lldb/source/Core/SourceManager.cpp
parentb39e44b3f4b77ad37845b4310cdccdb90dc09a10 (diff)
downloadbcm5719-llvm-03439a87cfd3988c37d2677e8b8f89a72a0e2ca4.tar.gz
bcm5719-llvm-03439a87cfd3988c37d2677e8b8f89a72a0e2ca4.zip
Silence some MSVC warnings.
Summary: Just `assert("string" && false)` instead of `assert("string" == NULL)`. This avoid errors like [...]\Core\SourceManager.cpp(647): warning C4130: '==' : logical operation on address of string constant Reviewers: zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D12388 llvm-svn: 246123
Diffstat (limited to 'lldb/source/Core/SourceManager.cpp')
-rw-r--r--lldb/source/Core/SourceManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/SourceManager.cpp b/lldb/source/Core/SourceManager.cpp
index 2d1b517d65e..a69e75fe244 100644
--- a/lldb/source/Core/SourceManager.cpp
+++ b/lldb/source/Core/SourceManager.cpp
@@ -644,14 +644,14 @@ SourceManager::File::CalculateLineOffsets (uint32_t line)
else
{
// Some lines have been populated, start where we last left off
- assert("Not implemented yet" == NULL);
+ assert("Not implemented yet" && false);
}
}
else
{
// Calculate all line offsets up to "line"
- assert("Not implemented yet" == NULL);
+ assert("Not implemented yet" && false);
}
return false;
}
OpenPOWER on IntegriCloud