From: Xinliang David Li Date: Thu, 13 Apr 2017 23:37:21 +0000 (+0000) Subject: [Profile] PE binary coverage bug fix X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07178d535b1b7b85d4de561da981cc23aa37afb4;p=clang [Profile] PE binary coverage bug fix PR/32584 Differential Revision: https://reviews.llvm.org/D32023 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300279 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CoverageMappingGen.cpp b/lib/CodeGen/CoverageMappingGen.cpp index 5bc9e5011a..a3fe5f88a6 100644 --- a/lib/CodeGen/CoverageMappingGen.cpp +++ b/lib/CodeGen/CoverageMappingGen.cpp @@ -966,7 +966,7 @@ bool isMachO(const CodeGenModule &CGM) { } StringRef getCoverageSection(const CodeGenModule &CGM) { - return llvm::getInstrProfCoverageSectionName(isMachO(CGM)); + return llvm::getInstrProfCoverageSectionName(&CGM.getModule()); } std::string normalizeFilename(StringRef Filename) {