Skip to content

Commit

Permalink
Add YKFIXME comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel-Durov committed Nov 14, 2023
1 parent afced49 commit 8d52787
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llvm/lib/CodeGen/TargetPassConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,9 @@ bool TargetPassConfig::addISelPasses() {
if (YkShadowStack) {
addPass(createYkShadowStackPass());
}

// YKFIXME: This is a hack. The `createLowerEmuTLSPass` pass is already added above.
// We need to add it again since we want to run it on the new thread-local ShadowStack instance
// which is inserted after the original TLS pass has run.
if (TM->useEmulatedTLS()){
addPass(createLowerEmuTLSPass());
}
Expand Down

0 comments on commit 8d52787

Please sign in to comment.