Skip to content

Commit 9056284

Browse files
committedFeb 27, 2016
[sancov] properly initializing pass.
llvm-svn: 262111
1 parent 3c767db commit 9056284

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,12 @@ void SanitizerCoverageModule::InjectCoverageAtBlock(Function &F, BasicBlock &BB,
557557
}
558558

559559
char SanitizerCoverageModule::ID = 0;
560-
INITIALIZE_PASS(SanitizerCoverageModule, "sancov",
560+
INITIALIZE_PASS_BEGIN(SanitizerCoverageModule, "sancov",
561+
"SanitizerCoverage: TODO."
562+
"ModulePass", false, false)
563+
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
564+
INITIALIZE_PASS_DEPENDENCY(PostDominatorTreeWrapperPass)
565+
INITIALIZE_PASS_END(SanitizerCoverageModule, "sancov",
561566
"SanitizerCoverage: TODO."
562567
"ModulePass", false, false)
563568
ModulePass *llvm::createSanitizerCoverageModulePass(

0 commit comments

Comments
 (0)
Please sign in to comment.