]> granicus.if.org Git - clang/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)
commit58b9b6da8707a78b0e0013987d8b49859904e37a
treeda0d895d939f1ef617fd86411e95ccd5264722ba
parent440bb3a84419c6ee1fa1e9a13257c13cec8bbb85
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/cfe/trunk@374527 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp
test/CodeGen/sanitizer-module-constructor.c [new file with mode: 0644]