mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 13:35:38 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user