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:
parent
4f2c8f2700
commit
a761228d20
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user