r300304 - Fix use after free error
Xinliang David Li via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 13 21:14:30 PDT 2017
Author: davidxl
Date: Thu Apr 13 23:14:29 2017
New Revision: 300304
URL: http://llvm.org/viewvc/llvm-project?rev=300304&view=rev
Log:
Fix use after free error
Modified:
cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp
Modified: cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp?rev=300304&r1=300303&r2=300304&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp (original)
+++ cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp Thu Apr 13 23:14:29 2017
@@ -961,7 +961,7 @@ struct CounterCoverageMappingBuilder
}
};
-StringRef getCoverageSection(const CodeGenModule &CGM) {
+std::string getCoverageSection(const CodeGenModule &CGM) {
return llvm::getInstrProfCoverageSectionName(&CGM.getModule());
}
More information about the cfe-commits
mailing list