forked from OSchip/llvm-project
silence some warnings when asserts are disabled.
llvm-svn: 39127
This commit is contained in:
parent
7ad0fbe1f2
commit
cf6bc66421
|
@ -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();
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue