Skip to content

Commit fc97a63

Browse files
Move a second variable only used in an assert into the assert.
This prevents unused variable warnings when building without asserts.
1 parent 66f2d09 commit fc97a63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CodeGen/CoverageMappingGen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,8 @@ struct CounterCoverageMappingBuilder
989989
EndDepth--;
990990
}
991991
if (UnnestStart) {
992-
SourceLocation NestedLoc = getEndOfFileOrMacro(AfterLoc);
993-
assert(SM.isWrittenInSameFile(AfterLoc, NestedLoc));
992+
assert(SM.isWrittenInSameFile(AfterLoc,
993+
getEndOfFileOrMacro(AfterLoc)));
994994

995995
AfterLoc = getIncludeOrExpansionLoc(AfterLoc);
996996
assert(AfterLoc.isValid());

0 commit comments

Comments
 (0)