]> granicus.if.org Git - llvm/commit
Insert module constructors in a module pass
authorVitaly Buka <vitalybuka@google.com>
Fri, 11 Oct 2019 08:47:03 +0000 (08:47 +0000)
committerVitaly Buka <vitalybuka@google.com>
Fri, 11 Oct 2019 08:47:03 +0000 (08:47 +0000)
commit2e8de397c536627c23821599dd19065007e955f6
tree2aac5d596d1ecd1c754753bf52b2112bf5ad155a
parent8d64ebc76fdcd00bc76d2a248c38cc40dea4caf7
Insert module constructors in a module pass

Summary:
If we insert them from function pass some analysis may be missing or invalid.
Fixes PR42877.

Reviewers: eugenis, leonardchan

Reviewed By: leonardchan

Subscribers: hiraditya, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D68832

llvm-svn: 374481
Signed-off-by: Vitaly Buka <vitalybuka@google.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374527 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Instrumentation/MemorySanitizer.h
include/llvm/Transforms/Instrumentation/ThreadSanitizer.h
lib/Passes/PassRegistry.def
lib/Transforms/Instrumentation/MemorySanitizer.cpp
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
test/Instrumentation/MemorySanitizer/msan_basic.ll
test/Instrumentation/ThreadSanitizer/tsan_basic.ll