mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 09:31:59 +08:00
Move a second variable only used in an assert into the assert.
This prevents unused variable warnings when building without asserts.
This commit is contained in:
@@ -989,8 +989,8 @@ struct CounterCoverageMappingBuilder
|
||||
EndDepth--;
|
||||
}
|
||||
if (UnnestStart) {
|
||||
SourceLocation NestedLoc = getEndOfFileOrMacro(AfterLoc);
|
||||
assert(SM.isWrittenInSameFile(AfterLoc, NestedLoc));
|
||||
assert(SM.isWrittenInSameFile(AfterLoc,
|
||||
getEndOfFileOrMacro(AfterLoc)));
|
||||
|
||||
AfterLoc = getIncludeOrExpansionLoc(AfterLoc);
|
||||
assert(AfterLoc.isValid());
|
||||
|
||||
Reference in New Issue
Block a user