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
This commit is contained in:
Stephane Sezer 2015-08-26 23:55:14 +00:00
parent b39e44b3f4
commit 03439a87cf
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}