diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2021-01-27 17:07:43 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-01-27 18:32:35 +0300 |
commit | 4de3bdd65fb1d8efe6e100b343b076e7ea9840c8 (patch) | |
tree | 938d964f44b6a0925db784e800ebf095e2c2abc2 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | add98b2462906a8b81f425cc820c0d165bf6ceca (diff) | |
download | llvm-4de3bdd65fb1d8efe6e100b343b076e7ea9840c8.zip llvm-4de3bdd65fb1d8efe6e100b343b076e7ea9840c8.tar.gz llvm-4de3bdd65fb1d8efe6e100b343b076e7ea9840c8.tar.bz2 |
[NFC] StackProtector: be consistent and to initialize DominatorTreeWrapperPass
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.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackProtector.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index 0411faa..aa17a08 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -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) |