diff options
author | Xinliang David Li <davidxl@google.com> | 2017-04-13 23:37:21 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2017-04-13 23:37:21 +0000 |
commit | f0e879dffd1e054f4e9b4f9f7e11cfd9e948dee2 (patch) | |
tree | 3b4fdda7e5db779bbfdae34861ffa13713d7e529 /clang/lib/CodeGen/CoverageMappingGen.cpp | |
parent | 3bb31c8c490606e7d35dcdbd9f04b7c1101428d3 (diff) | |
download | bcm5719-llvm-f0e879dffd1e054f4e9b4f9f7e11cfd9e948dee2.tar.gz bcm5719-llvm-f0e879dffd1e054f4e9b4f9f7e11cfd9e948dee2.zip |
[Profile] PE binary coverage bug fix
PR/32584
Differential Revision: https://reviews.llvm.org/D32023
llvm-svn: 300279
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r-- | clang/lib/CodeGen/CoverageMappingGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index 5bc9e5011aa..a3fe5f88a6e 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/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) { |