From 07178d535b1b7b85d4de561da981cc23aa37afb4 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Thu, 13 Apr 2017 23:37:21 +0000 Subject: [PATCH] [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 --- lib/CodeGen/CoverageMappingGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.40.0