silence some warnings when asserts are disabled.

llvm-svn: 39127
This commit is contained in:
Chris Lattner 2006-11-05 07:59:08 +00:00
parent 7ad0fbe1f2
commit cf6bc66421
2 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,7 @@ SourceBufferMMapFile::SourceBufferMMapFile(const sys::Path &Filename) {
// FIXME: This does an extra stat syscall to figure out the size, but we
// already know the size!
bool Failure = File.open(Filename);
Failure = Failure; // Silence warning in no-asserts mode.
assert(!Failure && "Can't open file??");
File.map();

View File

@ -1238,6 +1238,7 @@ void Preprocessor::SkipExcludedConditionalBlock(SourceLocation IfTokenLoc,
PPConditionalInfo CondInfo;
CondInfo.WasSkipping = true; // Silence bogus warning.
bool InCond = CurLexer->popConditionalLevel(CondInfo);
InCond = InCond; // Silence warning in no-asserts mode.
assert(!InCond && "Can't be skipping if not in a conditional!");
// If we popped the outermost skipping block, we're done skipping!