1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

[sancov] Fix the sancov pass to initialize itself inside its

constructor. This should fix the recent crashes on certain
architectures.

llvm-svn: 263845
This commit is contained in:
Chandler Carruth 2016-03-18 22:35:58 +00:00
parent 4f2c8f2700
commit a761228d20

View File

@ -152,7 +152,9 @@ class SanitizerCoverageModule : public ModulePass {
public:
SanitizerCoverageModule(
const SanitizerCoverageOptions &Options = SanitizerCoverageOptions())
: ModulePass(ID), Options(OverrideFromCL(Options)) {}
: ModulePass(ID), Options(OverrideFromCL(Options)) {
initializeSanitizerCoverageModulePass(*PassRegistry::getPassRegistry());
}
bool runOnModule(Module &M) override;
bool runOnFunction(Function &F);
static char ID; // Pass identification, replacement for typeid