diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index ce2cb380e0c1..519b9ad4bdbd 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/lib/CodeGen/CoverageMappingGen.cpp @@ -981,8 +981,8 @@ struct CounterCoverageMappingBuilder bool UnnestStart = StartDepth >= EndDepth; bool UnnestEnd = EndDepth >= StartDepth; if (UnnestEnd) { - SourceLocation NestedLoc = getStartOfFileOrMacro(BeforeLoc); - assert(SM.isWrittenInSameFile(NestedLoc, BeforeLoc)); + assert(SM.isWrittenInSameFile(getStartOfFileOrMacro(BeforeLoc), + BeforeLoc)); BeforeLoc = getIncludeOrExpansionLoc(BeforeLoc); assert(BeforeLoc.isValid());