[PATCH] D68832: [tsan,msan] Insert module constructors in a module pass
Leonard Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 15:03:17 PDT 2019
leonardchan accepted this revision.
leonardchan added a comment.
This revision is now accepted and ready to land.
Thanks for finding the root cause of this!
================
Comment at: llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp:143
+
+static void insertModuleCtor(Module &M) {
+ getOrCreateSanitizerCtorAndInitFunctions(
----------------
nit: static unneeded here
================
Comment at: llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp:163
+PreservedAnalyses ThreadSanitizerPass::run(Module &M,
+ AnalysisManager<Module> &AM) {
+ insertModuleCtor(M);
----------------
nit: `ModuleAnalysisManager &MAM`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68832/new/
https://reviews.llvm.org/D68832
More information about the llvm-commits
mailing list