Fix use after free error

llvm-svn: 300304
This commit is contained in:
Xinliang David Li 2017-04-14 04:14:29 +00:00
parent 3a59e1a78f
commit 1f39fcf26d
1 changed files with 1 additions and 1 deletions
clang/lib/CodeGen

View File

@ -961,7 +961,7 @@ struct CounterCoverageMappingBuilder
} }
}; };
StringRef getCoverageSection(const CodeGenModule &CGM) { std::string getCoverageSection(const CodeGenModule &CGM) {
return llvm::getInstrProfCoverageSectionName(&CGM.getModule()); return llvm::getInstrProfCoverageSectionName(&CGM.getModule());
} }