[NFC] StackProtector: be consistent and to initialize DominatorTreeWrapperPass
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 27 Jan 2021 14:07:43 +0000 (17:07 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 27 Jan 2021 15:32:35 +0000 (18:32 +0300)
We already ask for it, so it might be good to ensure that it is
actually initialized before us. Doesn't seem to matter in practice though.

llvm/lib/CodeGen/StackProtector.cpp

index 0411faa..aa17a08 100644 (file)
@@ -70,6 +70,7 @@ StackProtector::StackProtector() : FunctionPass(ID), SSPBufferSize(8) {
 INITIALIZE_PASS_BEGIN(StackProtector, DEBUG_TYPE,
                       "Insert stack protectors", false, true)
 INITIALIZE_PASS_DEPENDENCY(TargetPassConfig)
+INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
 INITIALIZE_PASS_END(StackProtector, DEBUG_TYPE,
                     "Insert stack protectors", false, true)