projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
add98b2
)
[NFC] StackProtector: be consistent and to initialize DominatorTreeWrapperPass
author
Roman Lebedev
<lebedev.ri@gmail.com>
Wed, 27 Jan 2021 14:07:43 +0000
(17:07 +0300)
committer
Roman 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
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/StackProtector.cpp
b/llvm/lib/CodeGen/StackProtector.cpp
index
0411faa
..
aa17a08
100644
(file)
--- 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)